]> Cypherpunks repositories - gostls13.git/commit
cmd/go: move gc concurrency level computation near gcflags
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 23 Sep 2021 16:40:58 +0000 (23:40 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 24 Sep 2021 04:32:28 +0000 (04:32 +0000)
commit9ce601df6a8292f763b07994680013facd7b4a63
treee8e8c34f3c0fa32a47b98e883ee3e8f61d2cd9fc
parentaa878ee49b6954a818cc00c26754c84b86a4215b
cmd/go: move gc concurrency level computation near gcflags

So after constructing "args" variable, "gcflags" is not used anywhere.
It makes the code easier to maintain, and prevent subtle bug like #48490.

Change-Id: I41653536480880a8a6f9fbf6cfa8a461b6fb3208
Reviewed-on: https://go-review.googlesource.com/c/go/+/351849
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/go/internal/work/gc.go