Skip to content

SPMI: Assert map exists in repGetCookieForPInvokeCalliSig#118524

Merged
jakobbotsch merged 1 commit intodotnet:mainfrom
jakobbotsch:fix-118522
Aug 8, 2025
Merged

SPMI: Assert map exists in repGetCookieForPInvokeCalliSig#118524
jakobbotsch merged 1 commit intodotnet:mainfrom
jakobbotsch:fix-118522

Conversation

@jakobbotsch
Copy link
Copy Markdown
Member

Fix #118522

Copilot AI review requested due to automatic review settings August 8, 2025 10:17
@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 Aug 8, 2025
Copy link
Copy Markdown
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 adds an assertion to ensure the GetCookieForInterpreterCalliSig map exists before attempting to use it in the repGetCookieForPInvokeCalliSig method. This appears to be a defensive programming fix to address issue #118522, likely preventing crashes or undefined behavior when the map is unexpectedly null or uninitialized.

Key changes:

  • Added a single assertion line to validate map existence before proceeding with the method logic

@jakobbotsch
Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib

@jakobbotsch
Copy link
Copy Markdown
Member Author

/ba-g Infra timeouts

@jakobbotsch jakobbotsch merged commit 19e2ae0 into dotnet:main Aug 8, 2025
86 of 91 checks passed
@jakobbotsch jakobbotsch deleted the fix-118522 branch August 8, 2025 16:29
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

SPMI: Segfault in JIT in superpmi-diffs

3 participants