Skip to content

[interp] Suppress tailcall flag if target is a non-marshaled pinvoke - #119777

Merged
kg merged 1 commit into
dotnet:mainfrom
kg:interp-tailcall-pinvoke
Sep 17, 2025
Merged

kg merged 1 commit into
dotnet:mainfrom
kg:interp-tailcall-pinvoke

Conversation

@kg

@kg kg commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

Fixes JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28901

@kg
kg requested a review from BrzVlad as a code owner September 16, 2025 17:58
Copilot AI review requested due to automatic review settings September 16, 2025 17:58
@kg
kg requested a review from janvorli as a code owner September 16, 2025 17:58

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 fixes a bug in the interpreter's call handling where tailcall flags were incorrectly applied to non-marshaled pinvoke calls. The fix suppresses the tailcall optimization when the target is a non-marshaled pinvoke, which resolves a specific regression test failure.

  • Adds conditional logic to disable tailcall for non-marshaled pinvoke targets
  • Removes an assertion that was preventing the code from handling this case properly

Comment thread src/coreclr/interpreter/compiler.cpp Resolved
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

…ling a marshaled pinvoke should work since the stub is IL)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants