Skip to content

Conversation

@TrueLunacy
Copy link
Contributor

PersistedAssemblyBuilder didn't write field offset correctly when field offset was 0. This fixes that, and adds a test to ensure the behaviour is working.

Fixes #105795

PersistedAssemblyBuilder didn't write field offset correctly when field offset
was 0. This fixes that, and adds a test to ensure the behaviour is working.

Fixes dotnet#105795
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 2, 2024
@TrueLunacy
Copy link
Contributor Author

@dotnet-policy-service agree

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @TrueLunacy

@buyaa-n buyaa-n requested review from ericstj and jeffhandley August 2, 2024 23:42
@buyaa-n
Copy link
Contributor

buyaa-n commented Aug 2, 2024

@ericstj @jeffhandley I would like to merge this bug fix found in new PersistedAssemblyBuilder in RC1,

@buyaa-n buyaa-n added this to the 9.0.0 milestone Aug 2, 2024
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for RC1 merge (into main). Thanks, @TrueLunacy!

@buyaa-n buyaa-n merged commit 1c0ce30 into dotnet:main Aug 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Reflection.Emit community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Field offset not being set when offset is 0 on explicit layout types.

3 participants