Revert "Make the constexpr mutex constructor opt-in (#4000)"#4339
Merged
StephanTLavavej merged 2 commits intomicrosoft:mainfrom Jan 25, 2024
Merged
Conversation
This reverts commit 782dcd5. Fixes microsoft#4338
Member
|
This is possible now that @amyw-msft merged her MSVC-PR-519388 "Update crt140 nuget package to version 33321 (17.9p2)" today. Thanks for taking care of this @CaseyCarter, it was on my list of things to do today and I didn't know it would take extra effort beyond a plain revert 😻 |
Contributor
Author
#4000 was me, so I felt obliged to fix the damage I did to the STL =) |
StephanTLavavej
approved these changes
Jan 24, 2024
Member
|
Pushed comment changes! |
Member
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Member
|
Thanks for undoing your undo! 🔁 😻 🎉 |
14 tasks
4 tasks
narknon
added a commit
to UE4SS-RE/RE-UE4SS
that referenced
this pull request
Jun 22, 2024
microsoft/STL#3824 microsoft/STL#4000 microsoft/STL#4339 Add escape hatch due to STL change resulting in issues with binary compatibility. https://github.com/microsoft/STL/wiki/Changelog "Fixed bugs: Fixed mutex's constructor to be constexpr. #3824 #4000 #4339 Note: Programs that aren't following the documented restrictions on binary compatibility may encounter null dereferences in mutex machinery. You must follow this rule: When you mix binaries built by different supported versions of the toolset, the Redistributable version must be at least as new as the latest toolset used by any app component. You can define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR as an escape hatch."
2 tasks
narknon
added a commit
to UE4SS-RE/RE-UE4SS
that referenced
this pull request
Jun 27, 2024
STL updates Mutex Fix microsoft/STL#3824 microsoft/STL#4000 microsoft/STL#4339 Add escape hatch due to STL change resulting in issues with binary compatibility. https://github.com/microsoft/STL/wiki/Changelog "Fixed bugs: Fixed mutex's constructor to be constexpr. #3824 #4000 #4339 Note: Programs that aren't following the documented restrictions on binary compatibility may encounter null dereferences in mutex machinery. You must follow this rule: When you mix binaries built by different supported versions of the toolset, the Redistributable version must be at least as new as the latest toolset used by any app component. You can define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR as an escape hatch."**Description**
kirides
added a commit
to kirides/GD3D11
that referenced
this pull request
May 8, 2025
Merge SaiyansKing readme changes and workaround for old "critical section" usage, update readme - Add Linux Wine Example - Update readme - @SaiyansKing fixed possible crash with mutex usage on newer c++: > VS 2022 17.10: > > - Fixed bugs: > - Fixed mutex's constructor to be constexpr. [#3824](microsoft/STL#3824) [#4000](microsoft/STL#4000) [#4339](microsoft/STL#4339) Note: Programs that aren't following the documented [restrictions on binary compatibility](https://learn.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-170) may encounter null dereferences in mutex machinery. You must follow this rule: When you mix binaries built by different supported versions of the toolset, the Redistributable version must be at least as new as the latest toolset used by any app component. > > - You can define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR as an escape hatch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit 782dcd5.
There were some minor merge conflicts (we added
^^^to the#endifcomment, and ASan changed theenv.lstfile) so this isn't a pure reversion.Fixes #4338