We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc5f615 commit 94e7973Copy full SHA for 94e7973
src/cmd/dist/test.go
@@ -1305,7 +1305,7 @@ func (t *tester) runPending(nextTest *distTest) {
1305
1306
// for runtime.NumCPU() > 4 , do not change maxbg.
1307
// Because there is not enough CPU to parallel the testing of multiple packages.
1308
- if runtime.NumCPU() > 4 {
+ if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
1309
for _, w := range worklist {
1310
// because GOMAXPROCS=2 runtime CPU usage is low,
1311
// so increase maxbg to avoid slowing down execution with low CPU usage.
0 commit comments