diff options
author | Austin Clements <austin@google.com> | 2017-06-13 11:33:57 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2017-09-27 16:29:12 +0000 |
commit | ee55000f6c45d2f5c38d91679def933fdf27c029 (patch) | |
tree | 4ef776782447da40d426da04e900a28803f9d8bd /src/runtime/debug.go | |
parent | 84d2c7ea835c238f466de64066b65614d1bc7dbe (diff) | |
download | go-ee55000f6c45d2f5c38d91679def933fdf27c029.tar.gz go-ee55000f6c45d2f5c38d91679def933fdf27c029.zip |
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/debug.go')
-rw-r--r-- | src/runtime/debug.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 0e798fc6f5..feacfb6026 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -15,9 +15,6 @@ import ( // The number of logical CPUs on the local machine can be queried with NumCPU. // This call will go away when the scheduler improves. func GOMAXPROCS(n int) int { - if n > _MaxGomaxprocs { - n = _MaxGomaxprocs - } lock(&sched.lock) ret := int(gomaxprocs) unlock(&sched.lock) |