Uh oh!
There was an error while loading. Please reload this page.
Reflection Invoke share more coreclr/mono - #60270
Conversation
ghost
commented
Oct 11, 2021
Tagging subscribers to this area: @buyaa-n Issue DetailsWork to reuse error handling between coreclr/mono for Reflection.Invoke scenarios.
|
Uh oh!
There was an error while loading. Please reload this page.
AaronRobinsonMSFT
commented
Oct 12, 2021
Uh 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.
Uh 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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…hare # Conflicts: # src/mono/mono/metadata/icall.c # src/mono/mono/metadata/object.c
AaronRobinsonMSFT
commented
Oct 14, 2021
@steveharter and @buyaa-n Any further thoughts on this change? |
Uh oh!
There was an error while loading. Please reload this page.
| if (has_byref_nullables) { | ||
| /* | ||
| * The runtime invoke wrapper already converted byref nullables back, | ||
| * and stored them in pa, we just need to copy them back to the | ||
| * managed array. | ||
| */ | ||
| for (i = 0; i < mono_array_length_internal (params); i++) { | ||
| MonoType *t = sig->params [i]; | ||
| if (m_type_is_byref (t) && t->type == MONO_TYPE_GENERICINST && mono_class_is_nullable (mono_class_from_mono_type_internal (t))) | ||
| mono_array_setref_internal (params, i, pa [i]); | ||
| } |
Work to reuse error handling between coreclr/mono for Reflection.Invoke scenarios.
Fixesmono/mono#14962
Fixesmono/mono#14993
Fixesmono/mono#14998
/cc @jkoritzinsky@elinor-fung