]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: let compiler downgrade its own concurrency
authorDavid Chase <drchase@google.com>
Mon, 7 Nov 2022 19:16:31 +0000 (14:16 -0500)
committerDavid Chase <drchase@google.com>
Mon, 7 Nov 2022 21:17:27 +0000 (21:17 +0000)
commitf3d656be502a7cc4e2afbec461983b453665fca5
treef72e121fa161971191c75f24ef5b0e2ae134b066
parent4538f30e2d35fdf44331d7066098c0daf2dd1a85
cmd/compile: let compiler downgrade its own concurrency

This gets the Go command out of the business of thinking it understands
compiler debug flags, and allows the compiler to turn down its worker
concurrency instead of failing and forcing the user to do the very
same thing.  Debug flags that are obviously safe for concurrency
(at least to me) are tagged; probably there's more.

Change-Id: I59bb19861d8a654a9cfd2364ee78c8628212f82e
Reviewed-on: https://go-review.googlesource.com/c/go/+/448359
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/base/debug.go
src/cmd/go/internal/work/gc.go