Uh oh!
There was an error while loading. Please reload this page.
Support invoke of function pointer type arg - #90270
Conversation
ghost
commented
Aug 9, 2023
Tagging subscribers to this area: @dotnet/area-system-reflection Issue Details[verifying tests]
|
a41e446 to
86cb0ebCompareUh 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.
ivanpovazan
commented
Aug 11, 2023
Is this planned to be merged in by RC1 snap? |
Uh oh!
There was an error while loading. Please reload this page.
steveharter
commented
Aug 11, 2023
I'll hold off on this PR until the Mono function pointer introspection PR is in. |
ivanpovazan
commented
Aug 11, 2023
Thank you. Done! |
vargaz
commented
Aug 13, 2023
The mono changes look ok. |
jkotas
commented
Aug 14, 2023
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jkotas
left a comment
There was a problem hiding this comment.
LGTM. (Please check that the tests are passing on native AOT before merging - I have triggered extra-platforms run.)
| Debug.Assert(type.IsPointer); | ||
| obj = Pointer.Box((void*)Unsafe.As<byte, IntPtr>(ref byref), type); | ||
| } | ||
| else if ((_returnTransform & Transform.FunctionPointer) != 0) |
There was a problem hiding this comment.
Without this change, a checked build would throw in the else statement below where it tried to box _returnType.
steveharter
commented
Aug 14, 2023
Also verified locally with both release and checked runtime build. Did update #90376 based on CI failures. Other failures appear unrelated. |
Addresses the main issue of #85028 which is the inability to invoke a method that has a function pointer type argument for CoreClr. Also adds support to Mono and fixes issue in NativeAot with returning function pointer types.