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

[mono][interp] Remove hack for nint/nfloat #62053

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Nov 25, 2021

Backport of #61612

Use a single g_print in bulk for every instruction. Otherwise, the instruction ends up being displayed on multiple lines.
These structures are valuetypes, but their mint_type is a primitive. This means that a LDFLD applied on the type would have attempted to do a pointer dereference, because it saw that the current top of stack is not STACK_TYPE_VT. This was fixed in the past by passing the managed pointer to the valuetype rather than the valuetype itself, against the normal call convention, which lead to inconsistencies in the code.

This commit removes that hack and fixes the problem by ignoring LDFLD applied to nint/nfloat valuetypes in the first place.
@ghost
Copy link

ghost commented Nov 25, 2021

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #61612

Author: BrzVlad
Assignees: -
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@BrzVlad
Copy link
Member Author

BrzVlad commented Nov 25, 2021

cc @steveisok @marek-safar

@marek-safar marek-safar added this to the .NET 6.0-MAUI milestone Nov 26, 2021
@akoeplinger akoeplinger merged commit af20fce into dotnet:release/6.0-maui Nov 30, 2021
@SamMonoRT
Copy link
Member

cc @rolfbjarne @Redth - fyi

@ghost ghost locked as resolved and limited conversation to collaborators Dec 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants