Skip to content

Conversation

@github-actions
Copy link
Contributor

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

Backport of #120290 to release/10.0

/cc @jakobbotsch

Customer Impact

  • Customer reported
  • Found internally

The JIT leaks unmanaged memory while compiling. Reported by customer in #120285.

Regression

  • Yes
  • No

Regression from #113988.

Testing

A version of global new was added that asserts unconditionally when it is used. This found the instance that the customer pointed to in the bug report, and also revealed another debug-only instance in the JIT where heap memory was allocated.

Risk

Low. Switch these heap allocations to use the expected allocator.

jakobbotsch and others added 7 commits October 2, 2025 08:51
Also override the global new operators to assert unconditionally, to
catch this common pitfall proactively.
@JulieLeeMSFT JulieLeeMSFT added this to the 10.0.0 milestone Oct 2, 2025
Copy link
Member

@JulieLeeMSFT JulieLeeMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@JulieLeeMSFT
Copy link
Member

@dotnet/jit-contrib PTAL.

@JulieLeeMSFT JulieLeeMSFT added Servicing-consider Issue for next servicing release review area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Oct 2, 2025
@dotnet-policy-service
Copy link
Contributor

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

@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 2, 2025
@agocke agocke merged commit b4542a6 into release/10.0 Oct 6, 2025
106 of 111 checks passed
@agocke agocke deleted the backport/pr-120290-to-release/10.0 branch October 6, 2025 18:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

7 participants