Skip to content

Conversation

@AndyAyersMS
Copy link
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`.
@Copilot Copilot AI review requested due to automatic review settings October 23, 2025 23:53
Copy link
Contributor

Copilot AI left a comment

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
Member Author

@dotnet/jit-contrib PTAL

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 23, 2025
@AndyAyersMS AndyAyersMS merged commit 7823f50 into dotnet:main Oct 24, 2025
96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An 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.

3 participants