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

Fix for #2940: fix data race warning in Go #3137

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

minjoosur
Copy link
Contributor

@minjoosur minjoosur commented Mar 26, 2021

This fixes #2940.
There was some missing and incorrect usage of locks which caused Data Race Warning on Go Target.
I solved the problem by putting a lock on the correct spots and by making sure read/write are coming through getter and setters.

@minjoosur minjoosur changed the title Fix for #2940: fix data race warning Fix for #2940: fix data race warning in Go Mar 26, 2021
@happygiraffe
Copy link

@pboyer are you the right person to review this? (based on comments in #2816)

Copy link
Contributor

@Joakker Joakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I do help with maintaining the go runtime, but I don't have write permissions it seems. So maybe ping someone with write access 😅

Also, please make sure to resolve the conflicts in contributors.txt

@ericvergnaud ericvergnaud merged commit b358b50 into antlr:master Aug 3, 2021
@parrt parrt added this to the 4.9.3 milestone Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go: data race in dfa.go
5 participants