]> Cypherpunks repositories - gostls13.git/commitdiff
testing: update permitted number of -race goroutines
authorIan Lance Taylor <iant@golang.org>
Tue, 23 Mar 2021 22:44:46 +0000 (15:44 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 24 Mar 2021 21:51:22 +0000 (21:51 +0000)
The value 8128 appears to be correct as of 2021-03-23. The value is
determined by the value of kMaxTid currently at

https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/tsan/rtl/tsan_defs.h#L68

Fixes #45193

Change-Id: If4a30d7dbebd6775bede42f565dc8a741b8b036c
Reviewed-on: https://go-review.googlesource.com/c/go/+/304254
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/testing/testing.go

index 0df6e45ec47c8150f228ff5fa3cc7df933f7e717..056a8d2879e37d88cea45e9bd2975e65ac73b5c1 100644 (file)
 //         }
 //     }
 //
-// The race detector kills the program if it exceeds 8192 concurrent goroutines,
+// The race detector kills the program if it exceeds 8128 concurrent goroutines,
 // so use care when running parallel tests with the -race flag set.
 //
 // Run does not return until parallel subtests have completed, providing a way