-
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] UnsafeAccessor: Enable tests for extern static methods without type parameters #101265
[mono] UnsafeAccessor: Enable tests for extern static methods without type parameters #101265
Conversation
Tagging subscribers to this area: @steveisok, @lambdageek |
All CI failures are known. |
@@ -2322,7 +2322,7 @@ method_sig_from_accessor_sig (MonoMethodBuilder *mb, gboolean hasthis, MonoMetho | |||
ret->hasthis = hasthis; | |||
for (int i = 1; i < ret->param_count; i++) | |||
ret->params [i - 1] = ret->params [i]; | |||
memset (&ret->params[ret->param_count - 1], 0, sizeof (MonoType)); // just in case | |||
memset (&ret->params[ret->param_count - 1], 0, sizeof (MonoType*)); // just in case |
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.
Let's keep this in mind if we need to do a net8.0 backport of any unsafe accessor fixes.
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.
Yeah, make sense.
… type parameters (dotnet#101265) * Enable tests for methods without type parameters * Enable more field tests * Enable all field tests * Fix the type to get size for
Contributes to #99830