Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: incorrect comment about max number of simultaneous goroutines running with -race flag #45193

pkositsyn opened this issue Mar 23, 2021 · 1 comment


Copy link

pkositsyn commented Mar 23, 2021

What version of Go are you using (go version)?

go version go1.16 darwin/amd64

Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?

go env Output

What did you do?

Run a program with -race flag exceeding max number of goroutines

What did you expect to see?

Expected to see a limit of 8192 as pointed out here

// The race detector kills the program if it exceeds 8192 concurrent goroutines,

What did you see instead?

race: limit on 8128 simultaneously alive goroutines is exceeded, dying

I don't know whether this number is system-specific or not, but it is exactly 8128 for darwin/amd64 and linux/arm64 at least.

Copy link

gopherbot commented Mar 23, 2021

Change mentions this issue: testing: update permitted number of -race goroutines

@golang golang locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

2 participants