-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[mini] Use alloca for runtime_invoke retval buffer #58978
Conversation
Fixes dotnet#58957 Related to dotnet#58215 which was attempting to fix dotnet#58190
Tagging subscribers to this area: |
gboolean retval_malloc = FALSE; | ||
gpointer retval_ptr; | ||
guint8 retval [MONO_SIZEOF_DYN_CALL_RET_BUF]; | ||
int32_t retval_size = MONO_SIZEOF_DYN_CALL_RET_BUF; |
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.
Could the initial size be SIZEOF_VOID_P
in order to avoid unnecessary stack allocation ?
In the common case we use the return buffer just to hold a pointer to the return value
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1227523946 |
Fixes #58957
Related to #58215 which was attempting to
fix #58190