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.

Change-Id: I30cebf1d08434f55c44c44ed9894e3e507665d35
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/219278
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
1 file changed