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

Extend STM and Lin to generate tests with 3 parallel domains #487

Open
jmid opened this issue Dec 13, 2024 · 0 comments
Open

Extend STM and Lin to generate tests with 3 parallel domains #487

jmid opened this issue Dec 13, 2024 · 0 comments
Labels
feature For enhancements of the libraries or test suite

Comments

@jmid
Copy link
Collaborator

jmid commented Dec 13, 2024

Some parallelism bugs may only show up with 3 parallel processes, see, e.g., Sec.4 of
"Experiences with QuickCheck: Testing the Hard Stuff and Staying Sane"
https://www.cs.tufts.edu/~nr/cs257/archive/john-hughes/quviq-testing.pdf

To have a chance of finding such bugs STM and Lin should be extended from the current 2 Domain.spawns.

This will most likely be an API breaking.

I made a quick proof-of-concept experiment some time back in the trifork-attempt branch:
https://github.com/ocaml-multicore/multicoretests/tree/trifork-attempt

@jmid jmid added the feature For enhancements of the libraries or test suite label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature For enhancements of the libraries or test suite
Projects
None yet
Development

No branches or pull requests

1 participant