Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Fix generated IL for the DynamicInvoke thunk - #1545

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:delegateThunkIL
Jul 19, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:delegateThunkIL

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Since the HelperParamRef/In intrinsics are currently faked as being
member methods of the delegate itself (they have ByRef return values and
can't be expressed as a C# method we could put [Intrinsic] on), they
need to be instantiated as open before being called from the referenced
code. RyuJIT apparently doesn't care, but CppCodeGen is more sensitive.

(Boy I'm glad I spent time improving the IL disassembly -
troubleshooting this was a breeze.)

Since the HelperParamRef/In intrinsics are currently faked as being
member methods of the delegate itself (they have ByRef return values and
can't be expressed as a C# method we could put `[Intrinsic]` on), they
need to be instantiated as open before being called from the referenced
code. RyuJIT apparently doesn't care, but CppCodeGen is more sensitive.

(Boy I'm glad I spent time improving the IL disassembly -
troubleshooting this was a breeze.)
@MichalStrehovsky

Copy link
Copy Markdown
Member Author

This is blocking the NMirror -> Master FI.

@MichalStrehovsky
MichalStrehovsky merged commit 9dcce40 into dotnet:master Jul 19, 2016
@MichalStrehovsky
MichalStrehovsky deleted the delegateThunkIL branch July 19, 2016 16:24
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.

2 participants