Repository navigation
Preserve native ilasm property sentinel signatures - #137094
Merged
jkoritzinsky merged 2 commits intoNov 7, 2026
Merged
jkoritzinsky merged 2 commits into
jkoritzinsky merged 2 commits into
Conversation
Exclude sentinel markers from property parameter counts and preserve them while rewriting local type handles. Cover sentinel positions and forward local type references. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib |
jkotas
reviewed
Nov 6, 2026
jkotas
reviewed
Nov 6, 2026
Apply jkotas review suggestions to identify intentional preservation of malformed signatures. Co-authored-by: Copilot App <[email protected]>
jkotas
approved these changes
Nov 6, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Managed ILAsm counts standalone sentinel markers as property parameters. For
.property int32 Goo(...), it emits08 01 08 41instead of native ILAsm's08 00 08 41, causing the Visual Basic compiler to report BC30643.Exclude standalone sentinels from the property parameter count and preserve sentinel bytes when rewriting local type handles. This retains native-supported malformed signatures rather than normalizing them. Add focused coverage for leading, middle, trailing, repeated, and sentinel-only signatures, plus forward local type references.
Validation on Windows:
.\build.cmd -subset tools.ilasm -test— passed; 5,795 tests passed, 3 skipped, 0 failed..\dotnet.cmd test src\tools\ilasm\tests\ILAssembler.Tests\ILAssembler.Tests.csproj --no-build --no-restore --filter 'FullyQualifiedName~PropertySignature_' --logger 'console;verbosity=minimal'— passed; all 9 focused cases passed.Note
This pull request description and code changes were generated with GitHub Copilot.