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

2022.1 : Fixing more default interface problems (case 1365974) #1565

Merged

Conversation

schoudhary-rythmos
Copy link

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.

  • 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

Reviewers: please consider these questions as well! ❤️

Release notes

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

Comments to reviewers
Cherry picked changes from the Trunk PR : #1551

The cherry pick was 100% clean.

bholmes and others added 4 commits March 4, 2022 10:47
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
@schoudhary-rythmos schoudhary-rythmos changed the title 2022.1 : Unity 2022.1 mbe unity case 1365974 2022.1 : Fixing more default interface problems (case 1365974) Mar 4, 2022
@schoudhary-rythmos schoudhary-rythmos merged commit cb15748 into unity-2022.1-mbe Mar 7, 2022
@schoudhary-rythmos schoudhary-rythmos deleted the unity-2022.1-mbe-unity-case-1365974 branch March 7, 2022 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants