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

Use adjusted parent layout size to handle a non-zero-sized class inheriting from a zero-sized class that inherits from another zero-sized class. #50861

Merged
merged 4 commits into from
Apr 20, 2021

Conversation

jkoritzinsky
Copy link
Member

This should be the last fix for any of the zero-sized inheritance cases.

Fixes #50764

…riting from a zero-sized class that inherits from another zero-sized class.

Fixes dotnet#50764
@AaronRobinsonMSFT
Copy link
Member

I assume we are folding this into the .NET 5 servicing change?

@elinor-fung
Copy link
Member

the .NET 5 servicing change

Are you talking about #50138 or something else? (Looks like that one got merged yesterday.)

@AaronRobinsonMSFT
Copy link
Member

Are you talking about #50138 or something else? (Looks like that one got merged yesterday.)

Sigh... yes. Do we think this needs to be included?

@jkoritzinsky
Copy link
Member Author

Yeah I'll put together a minimal servicing change for this.

@elinor-fung
Copy link
Member

Might be worth explicitly listing out all the scenarios we know about around this along with the previous behaviour vs. behaviour with these fixes? Especially with putting the changes in 5.0, considering we've already discovered various test gaps and things we had to re-fix.

@jkoritzinsky jkoritzinsky merged commit 5bc2ace into dotnet:main Apr 20, 2021
@jkoritzinsky jkoritzinsky deleted the fixes/50764 branch April 20, 2021 18:41
@ghost ghost locked as resolved and limited conversation to collaborators May 20, 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.

Marshalling record via PtrToStructure with two levels of inheritance shifts field offset
3 participants