-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[aot] Fix the handling of r4/r8 parameter types with attributes during generic sharing. #20217
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
Conversation
…g generic sharing. The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with parameters like double f = default will not be found. Fixes mono#20195.
|
@monojenkins build failed |
|
should the method get_wrapper_shared_type_reg consider this bug also? mono/mono/mini/mini-generic-sharing.c Lines 1343 to 1371 in 1ae5414
I found it also do't consider the r4/r8 type. |
|
It calls the other function. |
|
but it is also not handling r4/r8 parameter types, it can't be a problem? |
|
I deleted a bunch of duplicate comments (maybe a github bug?) |
|
/backport to 2020-02 |
|
Started backporting to 2020-02: https://github.com/mono/mono/actions/runs/2875839291 |
|
@BrzVlad backporting to 2020-02 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: [aot] Fix the handling of r4/r8 parameter types with attributes during generic sharing.
Using index info to reconstruct a base tree...
M mono/mini/mini-generic-sharing.c
Falling back to patching base and 3-way merge...
Auto-merging mono/mini/mini-generic-sharing.c
CONFLICT (content): Merge conflict in mono/mini/mini-generic-sharing.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 [aot] Fix the handling of r4/r8 parameter types with attributes during generic sharing.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
…g generic sharing. (mono#20217) The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with parameters like double f = default will not be found. Fixes mono#20195.
…#21537) * [wasm] Fix the handling of i8/u8 in get_wrapper_shared_type_full (). (#19859) Previously, these were returned verbatim, which caused sharing issues when the type had attributes. Fixes #19841. * [aot] Fix the handling of r4/r8 parameter types with attributes during generic sharing. (#20217) The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with parameters like double f = default will not be found. Fixes #20195. Co-authored-by: Zoltan Varga <[email protected]>
The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with
parameters like double f = default will not be found.
Fixes #20195.