Skip to content

Conversation

davidwrighton
Copy link
Member

  • Fix virtual function resolution might not handle dispatch to a shared generic method if the exact type of the method is visible at compile time
  • Fix ldelema for an array of reference types doesn't handle shared generics properly
  • Fix issue where the readonly prefix for ldelema is ignored

davidwrighton and others added 17 commits August 5, 2025 11:46
- Add a new opcode
- Add a new invocation method. Note that this needs to have the same copy the CallStubHeader logic as calli, as the target is not consistent from use to use
This change fixes the following issues:
* Reverse pinvoke to method marked by UnmanagedCallersOnly attribute.
  The InterpExecMethod is entered in GC preemptive mode in that case, but
  it is expected to run in GC cooperative mode.
* Pinvoke to method marked by SuppressGCTransition attribute . The pinvoke is
  entered in GC preemtive mode, but it needs to be called in GC
  cooperative mode.
* Calling a delegate or a similar case when IL stub is used. The
  interpreter code is set only on the IL stub MethodDesc, but it needs
  to be set on both the IL stub and the original MethodDesc.
No longer needed after the previous commit
- Fix  virtual function resolution might dispatch to the wrong location
- Fix ldelema for an array of reference types doesn't handle shared generics properly
- Fix the readonly prefix for ldelema is ignored.
@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 20:04
@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 7, 2025
Copy link
Contributor

@Copilot 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mangod9 mangod9 added area-VM-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 7, 2025
Copy link
Contributor

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

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@davidwrighton davidwrighton merged commit d104e3e into dotnet:main Aug 7, 2025
93 of 95 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2025
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.

4 participants