-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 race condition in iterator debug machinery #2060
Fix race condition in iterator debug machinery #2060
Conversation
Co-authored-by: Adam Bucior <[email protected]> Co-authored-by: Casey Carter <[email protected]>
stl/inc/xmemory
Outdated
_Orphan_me_v2(); | ||
#ifdef __cpp_lib_constexpr_dynamic_alloc | ||
if (_STD is_constant_evaluated()) { | ||
_Orphan_me_unlocked(); | ||
} else | ||
#endif // __cpp_lib_constexpr_dynamic_alloc | ||
{ | ||
_Orphan_me_locked(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this is a little bit of unrelated debug performance improvement, but I believe we should try to minimize the effect on debug performance
It seems we still have some race condition somewhere |
Oh it turns out the bug is with So I would change the test to only clear the container |
Co-authored-by: Adam Bucior <[email protected]>
@CaseyCarter @miscco @mnatsuhara FYI, I've pushed a series of commits, some significant. |
I'm going to add this to the next batch of changes to merge - please notify me if any further commits are pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the wait on this review! This looks good to me though 🥳
Thanks for fixing this high priority bug! 🪲 😸 🎉 |
Fixes #2058