Skip to content

Revisit EH at P/Invoke boundary for QCalls #123482

Closed

Description

@am11

we don't push them on pinvoke boundary for perf reason (@jkotas believed the perf hit would not be acceptable

On Unix, we would have to get rid of the internal EH interop for QCalls to do this correctly: catch the exception on QCall unmanaged side, store it in a thread local variable or in an [out] argument register, and rethrow it on the managed size.

Also, we would have the do something about the other managed->unmanaged transitions that do not go through the regular PInvoke path. For the less perf-sensitive transitions like ThePreStub, it should be ok to push the callee saved float registers.

Originally posted by @jkotas in #123307 (comment)

Activity

  1. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jan 22, 2026
  2. added and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jan 22, 2026
  3. MihuBot commented on Jan 22, 2026

    @MihuBot
  4. changed the title [-]Revisit EH at P/Invoke boundary[/-] [+]Revisit EH at P/Invoke boundary for QCalls[/+] on Jan 22, 2026
  5. dotnet-policy-service commented on Apr 15, 2026

    @dotnet-policy-service
    Contributor

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

  6. added this to the Future milestone on Apr 29, 2026
  7. removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 29, 2026
  8. modified the milestones: Future, 12.0.0 on Aug 14, 2026
  9. jkotas commented on Oct 6, 2026

    @jkotas
    Member

    This was fixed by #132420

  10. locked and limited conversation to collaborators on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions