Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] Implement coreclr_create_delegate and move ComponentActivator to shared CoreLib #59962

Merged
merged 4 commits into from
Oct 6, 2021

Conversation

lambdageek
Copy link
Member

@lambdageek lambdageek commented Oct 4, 2021

  • Implements the coreclr_create_delegate hosting API for MonoVM
  • Moves the ComponentActivator internal classes to the shared CoreLib area
  • Only works on desktop, and with trimming disabled.

Contributes to #59815

Tested with https://github.com/lambdageek/dnne_monovm_sample

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Comment on lines +355 to +358
gpointer addr = mono_compile_method_checked (wrapper, error);
goto_if_nok (error, fail);

*delegate = addr;
Copy link
Member Author

Choose a reason for hiding this comment

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

@vargaz I'm not sure if need to call mono_get_addr_from_ftnptr here or not.

Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

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

LGTM.

src/mono/mono/mini/monovm.h Show resolved Hide resolved
src/mono/mono/mini/monovm.c Show resolved Hide resolved
src/mono/mono/mini/monovm.c Show resolved Hide resolved
@lambdageek lambdageek force-pushed the component-activator-in-mono branch from 427bd72 to 25f55a7 Compare October 4, 2021 20:16
@lambdageek lambdageek force-pushed the component-activator-in-mono branch from 9ff16db to 0ee0d0a Compare October 5, 2021 14:09
Copy link
Member

@steveisok steveisok left a comment

Choose a reason for hiding this comment

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

LGTM

@lambdageek lambdageek merged commit b393a43 into dotnet:main Oct 6, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2021
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.

3 participants