-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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][aot] Enabling AOT wrappers for virtual delegates #85643
Conversation
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
src/mono/mono/mini/aot-compiler.c
Outdated
@@ -3778,6 +3778,8 @@ encode_method_ref (MonoAotCompile *acfg, MonoMethod *method, guint8 *buf, guint8 | |||
MonoJumpInfoToken *ji; | |||
guint8 *p = buf; | |||
|
|||
printf("NAME = %s\n", method->name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated change...only for debug reasons
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Ready to review / merge. |
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
@LeVladIonescu - as part of this PR consider enabling any disabled tests fixed by the changes. |
@SamMonoRT will check |
shared_context = mono_class_get_generic_container (method->klass)->context; | ||
inst = shared_context.class_inst; | ||
|
||
args = g_new0 (MonoType*, inst->type_argc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the memory being deallocated correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is not. I would suggest deallocating it after
runtime/src/mono/mono/metadata/metadata.c
Line 3399 in 175dae9
memcpy (ginst->type_argv, type_argv, type_argc * sizeof (MonoType *)); |
^ @vargaz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can be freed, but the aot compiler is already leaking memory in a number of places, so its not that important.
…d indentation Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Current failures are known and seem unrelated: |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Remaining failures are known and unrelated. |
Signed-off-by: Vlad - Alexandru Ionescu <vlad-alexandruionescu@Vlads-MacBook-Pro-5.local>
Adding AOT wrappers for delegate invoke virtual.
Contributes to #83329.