-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[release/5.0] Various fixes for layout class marshalling. #50882
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…zed class inheriting from a zero-sized class that inherits from another zero-sized class. Fixes handling of zero-sized parent types that have zero-sized parent types.
jkoritzinsky
added
Servicing-consider
Issue for next servicing release review
area-Interop-coreclr
labels
Apr 7, 2021
jkoritzinsky
removed
the
Servicing-consider
Issue for next servicing release review
label
Apr 7, 2021
This was referenced Apr 8, 2021
jkoritzinsky
changed the title
[release/5.0] 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.
[release/5.0] Various fixes for layout class marshalling.
Apr 9, 2021
The partner team that encountered the issue has validated that this PR fixes all of the issues they saw. |
AaronRobinsonMSFT
approved these changes
Apr 15, 2021
jeffschwMSFT
approved these changes
Apr 15, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. We will consider for 5.0.x
jeffschwMSFT
added
the
Servicing-consider
Issue for next servicing release review
label
Apr 15, 2021
leecow
added
Servicing-approved
Approved for servicing release
and removed
Servicing-consider
Issue for next servicing release review
labels
Apr 20, 2021
ghost
locked as resolved and limited conversation to collaborators
Jun 5, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes handling of zero-sized parent types that have zero-sized parent types. Port of #50861 to 5.0. Also includes #50138 for next month's rollout.
Customer Impact
Without this change, developers have to manually marshal types that inherit from an empty type that inherits from another empty type. This was reported as an issue at #50764.
Regression?
This was a regression from .NET Core 3.1.
See #49857
Testing
Tests for the fix are in #50861, the corresponding change in main.
Risk
Low. This change brings us back to behavior in .NET Core 3.1 and is a very targeted change (only has an effect when fixing the broken case).