Commit 3ffcbb63 authored by Russ Cox's avatar Russ Cox

runtime: default GOMAXPROCS to NumCPU(), not 1

See golang.org/s/go15gomaxprocs for details.

Change-Id: I8de5df34fa01d31d78f0194ec78a2474c281243c
Reviewed-on: https://go-review.googlesource.com/10668Reviewed-by: default avatarRob Pike <r@golang.org>
parent 14da5bef
......@@ -62,7 +62,7 @@ func schedinit() {
gcinit()
sched.lastpoll = uint64(nanotime())
procs := 1
procs := int(ncpu)
if n := atoi(gogetenv("GOMAXPROCS")); n > 0 {
if n > _MaxGomaxprocs {
n = _MaxGomaxprocs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment