Skip to content

[release/11.0] Remove global allocation overrides to avoid mismatched allocators when hosting .NET 11 - #137628

Merged
JulieLeeMSFT merged 1 commit into
dotnet:release/11.0from
jakobbotsch:fix-137487-release-11.0
Nov 17, 2026
Merged

JulieLeeMSFT merged 1 commit into
dotnet:release/11.0from
jakobbotsch:fix-137487-release-11.0

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

Description

In .NET 11, the JIT added overrides of operator new and operator delete as a diagnostic to catch unexpected uses of these. However, one operator new overload was missed. On Unix-based apps that host .NET 11 and override operator new/delete with custom allocators this can result in mismatched new/delete.

Customer Impact

  • Customer reported
  • Found internally

Reported in #137487. This can cause segfaults when self-hosting .NET 11 in an application that uses a custom allocator on Unix-based OS's.

Regression

  • Yes
  • No

Introduced in .NET 11.

Testing

Testing was manual, by building a self-hosting app and validating the crash, then validating it disappeared with the fix. A similar fix was validated directly by customer in #137488 (comment).

Risk

Low. Change removes the diagnostic overrides entirely from .NET 11.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: ef562efe-a62e-4c98-ba36-f7dfdd60c3df
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 16, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS

@jakobbotsch

Copy link
Copy Markdown
Member Author

/ba-g Slow mac and #137648 loongarch64 failure

@jkotas

jkotas commented Nov 16, 2026

Copy link
Copy Markdown
Member

loongarch64 failure

The loongarch64 build should be disabled instead in this case. It is not ok to merge with failures introduced by PR.

@JulieLeeMSFT JulieLeeMSFT added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 16, 2026
@JulieLeeMSFT JulieLeeMSFT added this to the 11.0.0 milestone Nov 16, 2026
JulieLeeMSFT added a commit that referenced this pull request Nov 16, 2026
…137691)

The linux-loongarch64 Debug CoreCLR_Bootstrapped leg fails with `ld.lld:
error: address assignment did not converge` (#137648). Disable it until
the issue is fixed.

Context: #137628

Co-authored-by: Copilot <[email protected]>
@JulieLeeMSFT

Copy link
Copy Markdown
Member

loongarch64 failure

The loongarch64 build should be disabled instead in this case. It is not ok to merge with failures introduced by PR.

@jkotas, I disabled it in #137691. Is it good to merge now?

@jkotas

jkotas commented Nov 16, 2026

Copy link
Copy Markdown
Member

Yes, it is fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants