Skip to content

One pool per compilation, step 3: the stages after the check read the caller's tree (part of #2523) - #3607

Merged
ehartford merged 1 commit into
mainfrom
one-pool-3
Nov 25, 2026
Merged

ehartford merged 1 commit into
mainfrom
one-pool-3

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Part of #2523; the issue stays open.

Compilation.active_pool(pool) returned a new holder of the tree: the typed snapshot's when there was one, else the caller's. It already required the two to be the same storage, so both arms were the caller's tree. It is now require_active_pool(pool), the check alone, and its seven callers read the tree they were given. Two more .clone() holder counts are gone; Zcu.typed_pool_cache stays as the witness that check compares against.

(A view-returning accessor was the first shape; the checker refuses its result as an argument of a mut call on self (§3.2), so the check and the use are separate statements.)

Evidence at 20e2e5c: both compilers check the source; release build; :unit-return-review, :ceremony-census, :self-audit green; battery green. Compiler internals only: no platform leg.

… caller's tree; the typed snapshot only says it is the same one (part of #2523)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant