aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lfstack.go
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2016-04-07 11:47:32 +1200
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2016-04-07 00:11:25 +0000
commit31cf1c17792d4da9dae2504c703633a0db8072c7 (patch)
tree2acb5d673c78845e85abefed1118d98477d82e7c /src/runtime/lfstack.go
parenta037c73ccfc7c35a389e95ffa7996c8dd38e0cde (diff)
downloadgo-31cf1c17792d4da9dae2504c703633a0db8072c7.tar.xz
runtime: clamp OS-reported number of processors to _MaxGomaxprocs
So that all Go processes do not die on startup on a system with >256 CPUs. I tested this by hacking osinit to set ncpu to 1000. Updates #15131 Change-Id: I52e061a0de97be41d684dd8b748fa9087d6f1aef Reviewed-on: https://go-review.googlesource.com/21599 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/lfstack.go')
0 files changed, 0 insertions, 0 deletions