Registry Mirror
Skip to content

Conversation

@hoyosjs

@hoyosjs hoyosjs commented Jun 26, 2025

Copy link
Copy Markdown
Member

Modified JIT_ReversePInvokeEnterTrackTransitions to use the given secret arg to identify if a method desc needs unwrapping and is a stub. This fixes cases where we step through the reverse Pinvoke boundary

Co-authored-by: Jan Kotas jkotas@microsoft.com

Modified JIT_ReversePInvokeEnterTrackTransitions to use the given secret arg
to identify if a method desc needs unwrapping and is a stub.

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@hoyosjs
hoyosjs requested review from Copilot and jkotas and removed request for Copilot June 26, 2025 02:03
@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 Jun 26, 2025

Copilot AI 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 updates JIT_ReversePInvokeEnterTrackTransitions to use the provided secret argument to determine if a MethodDesc requires unwrapping when it represents an ILStub.

  • Adds an assertion to ensure that secretArg is non-null for ILStub cases.
  • Refactors the branch logic to consistently use the UMEntryThunk pointer derived from secretArg.

Comment thread src/coreclr/vm/jithelpers.cpp Resolved
@hoyosjs
hoyosjs enabled auto-merge (squash) June 26, 2025 03:09

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@jkotas

jkotas commented Jun 26, 2025

Copy link
Copy Markdown
Member

/ba-g known wasm build failure

@hoyosjs
hoyosjs merged commit 1c2cef4 into dotnet:main Jun 26, 2025
@hoyosjs
hoyosjs deleted the juhoyosa/step-revpinvoke branch June 26, 2025 07:32
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 26, 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.

4 participants