Skip to content

Fix SPMI assert - #121051

Merged
AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:FixSPMIAssert
Oct 24, 2025
Merged

Fix SPMI assert#121051
AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:FixSPMIAssert

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

repGetCookieForPInvokeCalliSig was asserting for the wrong map, and so collection cleaning ended up throwing away a bunch of good method contexts.

Fix and add the corresponding assert to repGetCookieForInterpreterCalliSig.

`repGetCookieForPInvokeCalliSig` was asserting for the wrong map, and so collection
cleaning ended up throwing away a bunch of good method contexts.
Fix and add the corresponding assert to `repGetCookieForInterpreterCalliSig`.
CopilotAI review requested due to automatic review settings October 23, 2025 23:53

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an incorrect assertion in SPMI (SuperPMI) that was causing valid method contexts to be discarded during collection cleaning. The fix corrects the map validation in repGetCookieForPInvokeCalliSig and adds the missing assertion to repGetCookieForInterpreterCalliSig for consistency.

Key changes:

  • Fixed incorrect map assertion in repGetCookieForPInvokeCalliSig (was checking wrong map)
  • Added missing map assertion to repGetCookieForInterpreterCalliSig

@AndyAyersMS

Copy link
Copy Markdown
MemberAuthor

@dotnet/jit-contrib PTAL

@github-actionsgithub-actionsBot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 23, 2025
kg
kg approved these changes Oct 24, 2025
@AndyAyersMS
AndyAyersMS merged commit 7823f50 into dotnet:mainOct 24, 2025
96 checks passed
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Nov 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@AndyAyersMS@kg@jakobbotsch