-
Notifications
You must be signed in to change notification settings - Fork 4.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
Stop using std::map since cleanup races with the finalizer during shutdown. #38375
Stop using std::map since cleanup races with the finalizer during shutdown. #38375
Conversation
Wondering if this is sufficient, or the if the entire |
Boo. That does make sense. Not thrilled about changing that, but I can't argue with the logic. |
@@ -16,28 +16,89 @@ | |||
#define THROW_IF_FAILED(exp) { hr = exp; if (FAILED(hr)) { ::printf("FAILURE: 0x%08x = %s\n", hr, #exp); throw hr; } } | |||
#define THROW_FAIL_IF_FALSE(exp) { if (!(exp)) { ::printf("FALSE: %s\n", #exp); throw E_FAIL; } } | |||
|
|||
#include <map> |
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.
Is it just the debug iterators causing issues? Can we set _ITERATOR_DEBUG_LEVEL
?
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.
Possibly. However @AndyAyersMS statement above about the state of the CRT being the real issue is why we may want to just remove its usage entirely.
After looking at this again I think not updating the I think the current issue addresses the far more complicated issue involving the way STL collections perform validation. |
Any other feedback @elinor-fung or @jkoritzinsky ? |
See #38317 (comment)
Fixes #38531
/cc @AndyAyersMS @jkoritzinsky @elinor-fung