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

JIT: Set bbCodeOffsEnd to BAD_IL_OFFSET when expanding static init calls #100152

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

TIHan
Copy link
Member

@TIHan TIHan commented Mar 22, 2024

Will resolve #100125

The IL offsets in expanding static init is really tricky as a lot happens here, even in Debug compilations. Such as, user statements can actually be modified, as well as user blocks.

Since this is only limited to expanding static init calls, the quickest and easiest solution is to simply set the block's ending offset to BAD_IL_OFFSET.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 22, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@TIHan
Copy link
Member Author

TIHan commented Mar 22, 2024

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@TIHan
Copy link
Member Author

TIHan commented Mar 22, 2024

cc @AndyAyersMS @MichalStrehovsky

@filipnavara
Copy link
Member

The tests in NativeAOT are disable with a comment pointing to https://github.com/dotnet/runtime/issues/100125. You should probably enable them and re-run the NativeAOT outerloop.

@TIHan
Copy link
Member Author

TIHan commented Mar 22, 2024

@filipnavara thanks, I didn't realize that. I'll re-enable them.

@TIHan
Copy link
Member Author

TIHan commented Mar 22, 2024

/azp run runtime-nativeaot-outerloop

@TIHan
Copy link
Member Author

TIHan commented Mar 22, 2024

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion failed 'lastBlockILEndOffset < beginOffs'
3 participants