-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 data race in thread::scope()
#98504
Conversation
See # 98498 for more info
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
See #98503 for the This here avoids a pointer indirection, but it also I'll test this PR in Miri... once it actually builds:
(After fixing this it complains that |
This comment has been minimized.
This comment has been minimized.
Yeah, I have to fix these things: I submitted the PR from the web UI 😅 @rustbot author |
@rustbot review |
Co-Authored-By: Ralf Jung <post@ralfj.de>
a066e84
to
838e4d8
Compare
Hm, I am still seeing Stacked Borrows violations with this PR:
|
Oh, I think what is happening is that the padding between the fields is not in an |
Oh no. Ok, at this point, the sketches I have to tackle padding too, make the PR become way more unwieldy1, to my taste, than your now definitely simpler Footnotes
|
Fixes #98498, based on @RalfJung's suggestions (taking the non-
Arc
approach; for anArc
-based alternative, see #98503).r? @m-ou-se