Skip to content

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

Merged
TIHan merged 2 commits into
dotnet:mainfrom
TIHan:fix-100125
Mar 25, 2024
Merged

JIT: Set bbCodeOffsEnd to BAD_IL_OFFSET when expanding static init calls#100152
TIHan merged 2 commits into
dotnet:mainfrom
TIHan:fix-100125

Conversation

@TIHan

@TIHan TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor

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.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 22, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@TIHan

TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@TIHan

TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor Author

cc @AndyAyersMS @MichalStrehovsky

@filipnavara

Copy link
Copy Markdown
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

TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor Author

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

@TIHan

TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor Author

/azp run runtime-nativeaot-outerloop

@TIHan

TIHan commented Mar 22, 2024

Copy link
Copy Markdown
Contributor Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
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