Skip to content
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

Fixing more default interface problems (case 1365974) #1551

Merged
merged 4 commits into from
Feb 9, 2022

Conversation

bholmes
Copy link
Member

@bholmes bholmes commented Feb 3, 2022

Several cherry-picks for default interface methods....

Fix crash in common_call_trampoline due to inconsistent rgctx mode mono#21250

[mini] Don't add unbox tramopline on generic DIM calls (mono#21208)
Don't unbox a valuetype this if the generic method is a DIM

Fixes dotnet/runtime#58394

[mono] Fix StackTrace from a dim and Vtable offsets for static interf…
…ace method

  • Fix StackTrace when called from a DIM.
  • Fix the other test case that was added for @bholmes, and this case when the method TestMethod5 was being called it was executing TestMethod10, and this was fixed skipping static interface methods when was calculating vtable offsets.

The fix was completely done by @vargaz, I just opened the PR.
Thanks @vargaz .

Fix dotnet/runtime#60486

mono_get_generic_info_from_stack_frame fix for default interface methods
The context is a MonoMethodRuntimeGenericContext when the method is a
default interface method.

Related to dotnet/runtime#62334

  • Should this pull request have release notes?
    • Yes
    • No
  • Do these changes need to be back ported?
    • Yes
    • No
  • Do these changes need to be upstreamed to mono/mono or dotnet/runtime repositories?
    • Yes
    • No

Release notes

Fixed case 1365974 @bholmes :
Mono: Fix generic default interface method crash with Environment.StackTrace.

Backports

  • 2022.1
  • 2021.2

bholmes and others added 4 commits February 3, 2022 15:14
Don't unbox a valuetype `this` if the generic method is a DIM

Fixes dotnet/runtime#58394

Co-authored-by: lambdageek <[email protected]>
…ace method

- Fix StackTrace when called from a DIM.
- Fix the other test case that was added for @bholmes, and this case when the method `TestMethod5` was being called it was executing `TestMethod10`, and this was fixed skipping static interface methods when was calculating vtable offsets.

The fix was completely done by @vargaz, I just opened the PR.
Thanks @vargaz .

Fix dotnet/runtime#60486
The context is a MonoMethodRuntimeGenericContext when the method is a
default interface method.

Related to dotnet/runtime#62334
@bholmes bholmes marked this pull request as ready for review February 8, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants