Skip to content

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

@pkositsyn

Description

@pkositsyn

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

go version go1.16 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
GOOS="darwin"
GOARCH="amd64"

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions