Skip to content

Fix NativeImageEagerFixups lock ordering - #135447

Merged
davidwrighton merged 3 commits into
dotnet:mainfrom
davidwrighton:fix-crst-native-image-eager-fixups-order
Oct 9, 2026
Merged

davidwrighton merged 3 commits into
dotnet:mainfrom
davidwrighton:fix-crst-native-image-eager-fixups-order

Conversation

@davidwrighton

@davidwrighton davidwrighton commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

The R2R composite test path can acquire CrstAppDomainCache while holding CrstNativeImageEagerFixups. The dependency was not represented in CrstTypes.def, causing Checked builds to report a CRST level violation.

Declare CrstNativeImageEagerFixups as acquired before CrstAppDomainCache and CrstGlobalStrLiteralMap then regenerate crsttypes_generated.h. This changes the generated CrstNativeImageEagerFixups level from 8 to 17.

Testing

  • dotnet run --project src/coreclr/inc/CrstTypeTool/ — passed
  • ./build.sh clr -rc checked -hc checked — passed
  • src/tests/build.sh checked — passed
  • src/tests/run.sh checked — passed: 4,996 total, 4,753 passed, 0 failed, 243 skipped
  • jit64_3 with RunCrossGen2=1, CompositeBuildMode=1, and LargeVersionBubble=1 — passed, including Crossgen2 compilation, R2RDump validation, and execution

Resolves #135378

Note

This pull request was authored with assistance from GitHub Copilot.

Declare that CrstNativeImageEagerFixups is acquired before CrstAppDomainCache and regenerate the CRST level table.

Co-authored-by: Copilot <[email protected]>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@davidwrighton
davidwrighton marked this pull request as ready for review October 8, 2026 20:51
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@davidwrighton

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr crossgen2 outerloop

@azure-pipelines

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

@davidwrighton

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr crossgen2 outerloop

@azure-pipelines

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

@davidwrighton

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr crossgen2 outerloop

@azure-pipelines

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

@davidwrighton

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr crossgen2 outerloop

@azure-pipelines

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

@davidwrighton

Copy link
Copy Markdown
Member Author

/ba-g the only failure in the runtime tests is #135056

@davidwrighton
davidwrighton merged commit df64bc8 into dotnet:main Oct 9, 2026
159 of 163 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 13, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assert failure: Crst Level violation crashes entire crossgen2-outerloop pipeline

2 participants