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

Merged
merged 2 commits into from
Dec 19, 2024

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
@sim642 sim642 added this to the v2.6.0 milestone Dec 19, 2024
@sim642 sim642 merged commit e36e738 into master Dec 19, 2024
21 checks passed
@sim642 sim642 deleted the mine-W-noinit-threadenter branch December 19, 2024 10:33
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.

2 participants