-
Notifications
You must be signed in to change notification settings - Fork 18k
go/token: data race on FileSet.last #4345
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
Labels
Milestone
Comments
Top frame of one of the stacks seems to be broken (lessstack). But the report clearly points to that ad-hoc cache: https://code.google.com/p/go/source/browse/src/pkg/go/token/position.go#379 maintained under *reader* lock: https://code.google.com/p/go/source/browse/src/pkg/go/token/position.go#392 |
If we had issue #2280 (Receiver-curried method expressions) resolved (which is currently planned for Go1.1 I think?), then I think we could use a sync.Once here efficiently, as Russ wants to make the expression "receiverVariable.Method" be no allocations. |
Do you mean that issue https://golang.org/issue/4343 ? Do I get it right that func variables will be wider (2 words), and receiver.func() will automatically convert to func()? |
Owner changed to @griesemer. Status changed to Accepted. |
Issue #4540 has been merged into this issue. |
Issue #4540 has been merged into this issue. |
""" The race occurs when the the test takes longer than 10 seconds, so the fixture is marked as a failure and starts the next one, which increases the likely hood of a data race on the FileSet cache. Reducing the timeout to 1 second and running `go test -race -cpu=4` triggers the race almost immediately. """ |
Proposal: https://golang.org/cl/6968044/ Owner changed to @davecheney. |
This issue was closed by revision 07e706f. Status changed to Fixed. |
Closed
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: