Uh oh!
There was an error while loading. Please reload this page.
[Mono] Fix support for nested structs with explicit layout - #61467
Conversation
ghost
commented
Nov 11, 2021
Tagging subscribers to this area: |
…zsival/61385-nested-struct-with-explicit-layout
lambdageek
left a comment
There was a problem hiding this comment.
LGTM. Thanks, Simon!
I suggested to use the m_class_XYZ getters for accessing MonoClass fields in a couple of places. Technically class-init.c is allowed to use the fields directly, it's probably a good idea to only do it when you're also initializing the MonoClass.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
simonrozsival
commented
Dec 1, 2021
Thanks for the feedback @lambdageek! I replaced the direct accesses with those getters as you suggested. |
…otnet#61467)" This reverts commit 64d1276.
These were fixed by dotnet#61467 Related to dotnet#36112
The current implementation of explicit struct layout check doesn't consider the layout of embedded value types. This new implementation recursively checks the inner structure of all embedded structs.
Fixes#61385