Skip to content

[release/10.0] [mono] Allocate helper page with mono_valloc so it doesn't confuse instruments#120293

Merged
steveisok merged 1 commit intorelease/10.0from
backport/pr-120060-to-release/10.0
Nov 4, 2025
Merged

[release/10.0] [mono] Allocate helper page with mono_valloc so it doesn't confuse instruments#120293
steveisok merged 1 commit intorelease/10.0from
backport/pr-120060-to-release/10.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 1, 2025

Backport of #120060 to release/10.0

/cc @BrzVlad

Customer Impact

  • Customer reported
  • Found internally

Profiling with instruments doesn't work on maui maccatalyst/ios primarily when interpreter is enabled.

Regression

  • Yes
  • No

This is not really a regression on maui, but the problematic code is usually executed when interpreter is enabled. Given that on Xamarin the interpreter was less likely to be enabled, this could be a regression for some users.

Testing

Tested locally on ios and maccatalyst with complex enough applications that trigger this.

Risk

This fix just changes the way we allocate the page that we use to trigger memory barrier. I believe the risk of this change is low, but we are relying on undocumented side effects in order to trigger the process wide memory barrier (even before this change), so there is a chance for unforeseen side effects.

@steveisok steveisok added the Servicing-consider Issue for next servicing release review label Oct 6, 2025
@rbhanda rbhanda added this to the 10.0.0 milestone Oct 7, 2025
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 7, 2025
@steveisok
Copy link
Member

This is going into 10.0.1. The milestone hasn't been created and I lack the ability to create it.

@steveisok steveisok merged commit f24c0d6 into release/10.0 Nov 4, 2025
73 of 75 checks passed
@steveisok steveisok deleted the backport/pr-120060-to-release/10.0 branch November 4, 2025 03:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants