Skip to content

Commit d1db60f

Browse files
n
Change-Id: I8712b8b29108162ac7bb0f76b32b0c8f81259833
1 parent 26c57e6 commit d1db60f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/dist/test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1313,10 +1313,11 @@ func (t *tester) runPending(nextTest *distTest) {
13131313
}(w)
13141314
}
13151315

1316-
// for runtime.NumCPU() > 4 , do not change maxbg.
1316+
// for runtime.NumCPU() < 4 || runtime.GOMAXPROCS(0) == 1, do not change maxbg.
13171317
// Because there is not enough CPU to parallel the testing of multiple packages.
13181318
if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
13191319
for _, w := range worklist {
1320+
// See go.dev/issue/65164
13201321
// because GOMAXPROCS=2 runtime CPU usage is low,
13211322
// so increase maxbg to avoid slowing down execution with low CPU usage.
13221323
// This makes testing a single package slower,

0 commit comments

Comments
 (0)