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

Possible data races in Chan #72

Open
OlivierNicole opened this issue May 31, 2022 · 0 comments
Open

Possible data races in Chan #72

OlivierNicole opened this issue May 31, 2022 · 0 comments

Comments

@OlivierNicole
Copy link
Contributor

I'm currently experimenting with a ThreadSanitizer instrumentation pass for OCaml that allows to detect some data races in OCaml programs.

When running Domainslib's test suite, ThreadSanitizer reported two possible data races in lib/chan.ml:

Both have a similar pattern. After looking at it, I think they are indeed data races (an unsynchronised read and write), however it seems to me that they are benign in this library, assuming the OCaml memory model. That being said, I could use a confirmation from someone more experienced with the memory model to confirm.

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

No branches or pull requests

1 participant