[release/6.0] Unify the FlushProcessWriteBuffers mechanism for macOS arm64 / x64 #63301
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.
Backport of #62822 to release/6.0
/cc @janvorli
Customer Impact
We have seen people hitting problems with the wired memory page allocation on
macOS x64 in the past due to the fact that wired memory is a scarce resource and
in some cases, e.g. in presence of apps that greedily grab all of the available
wired memory pages, we were unable to initialize coreclr and execute any .NET
application. PowerQuery in Microsoft Excel was one of the applications that was
reported to hit this problem.
Testing
Local and lab testing of coreclr and libraries tests.
Risk
Low, the mechanism is the same one that we've introduced on arm64 macOS
a year ago. This change just enables the same thing for x64.