aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-06-13 16:19:16 -0400
committerBrad Fitzpatrick <bradfitz@golang.org>2017-06-13 23:43:20 +0000
commitfcb45b9c61c369ac340b1cecac770fe0f64c4859 (patch)
treedb910fa45828c5f0214b897a5ecacb1035338b14
parent538b3a5f37a5316a4ba081fd5a8eb5fb09992ba7 (diff)
downloadgo-fcb45b9c61c369ac340b1cecac770fe0f64c4859.tar.gz
go-fcb45b9c61c369ac340b1cecac770fe0f64c4859.zip
runtime: increase MaxGomaxprocs to 1024
Currently MaxGomaxprocs is 256. The previous CL saved enough per-P static space that we can quadruple MaxGomaxprocs (and hence the static size of allp) and still come out ahead. This is safe for Go 1.9. In Go 1.10 we'll eliminate the hard-coded limit entirely. Updates #15131. Change-Id: I919ea821c1ce64c27812541dccd7cd7db4122d16 Reviewed-on: https://go-review.googlesource.com/45673 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
-rw-r--r--src/runtime/runtime2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index da57235b02..2df1fefe7c 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -518,7 +518,7 @@ type p struct {
const (
// The max value of GOMAXPROCS.
// There are no fundamental restrictions on the value.
- _MaxGomaxprocs = 1 << 8
+ _MaxGomaxprocs = 1 << 10
)
type schedt struct {