Skip to content

Store prepare code config on CEEInfo - #134168

Merged
jkotas merged 2 commits into
dotnet:mainfrom
jkotas:jkotas-store-code-config
Sep 18, 2026
Merged

jkotas merged 2 commits into
dotnet:mainfrom
jkotas:jkotas-store-code-config

Conversation

@jkotas

@jkotas jkotas commented Sep 18, 2026

Copy link
Copy Markdown
Member

Move the active PrepareCodeConfig from thread-local state to the CEEInfo instance used for the compilation. This removes the thread-side holder and the per-config same-thread linked list while keeping nested compilations isolated per JIT info object.

Move the active PrepareCodeConfig from thread-local state to the CEEInfo instance used for the compilation. This removes the thread-side holder and the per-config same-thread linked list while keeping nested compilations isolated per JIT info object.

Co-authored-by: Copilot App <[email protected]>
Copilot AI lite review requested due to automatic review settings September 18, 2026 01:11
@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.

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

All references to the removed holder were traced, and configuration is consistently propagated through JIT and interpreter info instances.

Pull request overview

Moves PrepareCodeConfig ownership from thread-local state into each CEEInfo instance, preserving isolation for nested compilations.

Changes:

  • Removes the thread-side holder and linked-list state.
  • Stores the configuration on CEEInfo and updates callback consumers.
  • Updates shutdown construction and initializer lists.
File summaries
File Description
threads.inl Removes holder implementation.
threads.h Removes holder declarations and thread state.
threads.cpp Removes obsolete initialization.
prestub.cpp Stops installing the thread-local holder.
method.hpp Removes per-thread config linkage.
jitinterface.h Adds per-instance config storage.
jitinterface.cpp Uses the CEEInfo-associated configuration.
ceemain.cpp Updates shutdown-time construction.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0
  • Review effort level: Lite

Comment thread src/coreclr/vm/ceemain.cpp Resolved
Comment thread src/coreclr/vm/ceemain.cpp Resolved
Copilot AI review requested due to automatic review settings September 18, 2026 02:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

All former thread-local accesses were removed and compilation configuration is propagated through each JIT info instance.

Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@jkotas
jkotas enabled auto-merge (squash) September 18, 2026 04:47
@jkotas
jkotas merged commit 0dde0e1 into dotnet:main Sep 18, 2026
107 of 110 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 19, 2026
@jkotas
jkotas deleted the jkotas-store-code-config branch October 14, 2026 03:36
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 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.

3 participants