runtime: on 32-bit systems, limit default GOMAXPROCS to 32
authorIan Lance Taylor <iant@golang.org>
Thu, 13 Feb 2020 04:35:50 +0000 (20:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 15 Feb 2020 17:12:18 +0000 (09:12 -0800)
commit17edb3310d8ce9d5f6c9e53f6c1f7d611c2a5a41
tree3979912a6fd0b36187ca8367874dbe8b299b310d
parent5599262661af219726dccba200459671ed7bba8a
runtime: on 32-bit systems, limit default GOMAXPROCS to 32

Otherwise we can easily run out of stack space for threads.

The user can still override by setting GOMAXPROCS.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/219278
gcc/go/gofrontend/MERGE
libgo/go/runtime/proc.go