aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-06-13 11:33:57 -0400
committerAustin Clements <austin@google.com>2017-09-27 16:29:12 +0000
commitee55000f6c45d2f5c38d91679def933fdf27c029 (patch)
tree4ef776782447da40d426da04e900a28803f9d8bd /src/runtime/runtime2.go
parent84d2c7ea835c238f466de64066b65614d1bc7dbe (diff)
downloadgo-ee55000f6c45d2f5c38d91679def933fdf27c029.tar.xz
runtime: eliminate GOMAXPROCS limit
Now that allp is dynamically allocated, there's no need for a hard cap on GOMAXPROCS. Fixes #15131. Change-Id: I53eee8e228a711a818f7ebce8d9fd915b3865eed Reviewed-on: https://go-review.googlesource.com/45574 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 269c5b1c4d..055fff18af 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -520,12 +520,6 @@ type p struct {
pad [sys.CacheLineSize]byte
}
-const (
- // The max value of GOMAXPROCS.
- // There are no fundamental restrictions on the value.
- _MaxGomaxprocs = 1 << 10
-)
-
type schedt struct {
// accessed atomically. keep at top to ensure alignment on 32-bit systems.
goidgen uint64