Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Aug 22, 2025

Backport of #118161 to release/10.0

/cc @simonrozsival @radekdoulik

Customer Impact

  • Customer reported
  • Found internally

Without this change, CoreCLR on Android API 21-28 crashes during startup (see #115480). The PR was not ready before the RC1 snap.

Regression

  • Yes
  • No

CoreCLR on Android is a new feature in .NET 10.

Testing

Unit tests.

Risk

Low. The changes in this PR unrelated to Android are mostly refactoring.

radekdoulik and others added 27 commits August 22, 2025 10:21
Implements #117977

Also move the initialization of it and get of page size
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Do not care about cleanup
Do not move page size to minipal
Rename the files
Changes which were missed in earlier commits
Remove PalFlushProcessWriteBuffers wrapper
Remove parts around g_helperPage on mac
Rename to memory_barrier_process_wide
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Remove windows wrapper too
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Refactor ifdefs

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Call `minipal_initialize_memory_barrier_process_wide` from unix
`GCToOSInterface::Initialize`. Let it return true if it was previously
successfully initialized.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Refactor minipal_memory_barrier_process_wide
@jkotas
Copy link
Member

jkotas commented Aug 22, 2025

If we need the fix in .NET 10 for Android, we should do a small targeted fix for .NET 10 that just adds the few lines under Android ifdef. Backporting of this refactoring has unnecessary risk.

@simonrozsival
Copy link
Member

@jkotas ok, makes sense. I'm closing this PR now and I'll open the targeted change next week.

@simonrozsival simonrozsival deleted the backport/pr-118161-to-release/10.0 branch August 22, 2025 20:20
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants