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 mine-W-noinit not resetting W in threadenter #1640

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sim642
Copy link
Member

@sim642 sim642 commented Dec 16, 2024

This privatization is supposed to keep in the set $$W$$ globals may-written by the current thread. Currently threadenter propagates this set to the created thread which may thus create spurious side effects on behalf of the created thread who doesn't ever write the global.

This PR fixes that by resetting $$W$$ in threadenter.

(This is orthogonal to #1613 which also suffers from the same issue on the same test.)

@sim642 sim642 changed the title Fix mine-W-noinit not resetting W in threadenter Fix mine-W-noinit not resetting W in threadenter Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant