-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-System.Reflectionneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationruntime-monospecific to the Mono runtimespecific to the Mono runtime
Milestone
Description
A Field RVA alignment test is failing on mono legs in this PR
That verifies the code section:
runtime/src/libraries/System.Reflection.Emit/src/System/Reflection/Emit/ModuleBuilderImpl.cs
Lines 452 to 454 in f36b7cd
_metadataBuilder.AddFieldRelativeVirtualAddress(handle, fieldDataBuilder.Count); | |
fieldDataBuilder.WriteBytes(field._rvaData!); | |
fieldDataBuilder.Align(ManagedPEBuilder.MappedFieldDataAlignment); |
Not sure if it is bug or expected, I don't see mono specific code in MetadataBuilder
nor in BlobBuilder.Align(int)
runtime/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/BlobBuilder.cs
Lines 808 to 812 in 72c4c57
public void Align(int alignment) | |
{ | |
int position = Count; | |
WriteBytes(0, BitArithmetic.Align(position, alignment) - position); | |
} |
Metadata
Metadata
Assignees
Labels
area-System.Reflectionneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationruntime-monospecific to the Mono runtimespecific to the Mono runtime