Does function pointers require strong GC reference? #91896
Unanswered
OwnageIsMagic
asked this question in
Q&A
Replies: 1 comment
-
The function pointer can be invalidated if the assembly is unloaded (see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If
extern
method captures function pointer (delegate* {managed or unmanaged}
) do I need to keep strong reference to it on managed side?Is function jited when it's address taken (
&
)? If not, it seems like I need to later update stored pointer, so it will point to actual implementation instead of stub (for better performance).How does it play with tiered jit (Tier0 is never deallocated?)? What about assembly unloading?
Beta Was this translation helpful? Give feedback.
All reactions