]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/work: decrement concurrentProcesses when action finishes
authorMichael Matloob <matloob@golang.org>
Tue, 6 Jan 2026 22:18:48 +0000 (17:18 -0500)
committerMichael Matloob <matloob@google.com>
Wed, 7 Jan 2026 20:44:45 +0000 (12:44 -0800)
commit874d8b98eba8129559b97d2fdfa02ddeb88b95f9
tree46bcb9408e061d13d9e47b039e6091c5324002c7
parentd1e7f49e3d1eb039d9d2aed3ba923459bd42aa7c
cmd/go/internal/work: decrement concurrentProcesses when action finishes

This fixes a bug where we only incremented concurrentProcesses but never
decremented it, causing us to run out of tokens and give all compiles
-c=1 after a point.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64_c2s16-perf_vs_parent,gotip-linux-amd64_c3h88-perf_vs_parent,gotip-linux-arm64_c4ah72-perf_vs_parent,gotip-linux-arm64_c4as16-perf_vs_parent
Change-Id: I41f4c1edb77004cbc1772d6d672045946a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/734260
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>
TryBot-Bypass: Michael Matloob <matloob@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gc.go