Uh oh!
There was an error while loading. Please reload this page.
[wasm][coreclr] Fix prestub of methods with IL helper stubs - #124873
Conversation
Tagging subscribers to this area: @agocke |
There was a problem hiding this comment.
Pull request overview
This PR fixes a WASM/CoreCLR interpreter prestub issue where methods implemented via managed IL helper stubs could end up publishing an entrypoint that maps to the helperMethodDesc, breaking MethodDesc lookups and access checks (manifesting as MethodAccessException, e.g. around delegate construction).
Changes:
- Update
MethodDesc::DoPrestub(FCall + managed-impl + portable entrypoints) to publish this method’s ownPortableEntryPointand attach interpreter data to it, instead of reusing the helper’s portable entrypoint. - Enable interpreter callsite access-check callouts on WASM by removing the
#ifndef TARGET_WASMguard.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/coreclr/vm/prestub.cpp | Publishes the current method’s portable entrypoint and sets interpreter data for managed FCall helper-stub scenarios. |
src/coreclr/interpreter/compiler.cpp | Enables emitting callsite access-check callouts on WASM by removing a WASM-only compile-time exclusion. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Fix#121955