Skip to content

Commit 94e7973

Browse files
n
Change-Id: If8d2d4289ea3c0f951018115cb5652d6f0f7a43f
1 parent cc5f615 commit 94e7973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/dist/test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ func (t *tester) runPending(nextTest *distTest) {
13051305

13061306
// for runtime.NumCPU() > 4 , do not change maxbg.
13071307
// Because there is not enough CPU to parallel the testing of multiple packages.
1308-
if runtime.NumCPU() > 4 {
1308+
if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
13091309
for _, w := range worklist {
13101310
// because GOMAXPROCS=2 runtime CPU usage is low,
13111311
// so increase maxbg to avoid slowing down execution with low CPU usage.

0 commit comments

Comments
 (0)