Repository navigation
One pool per compilation, step 3: the stages after the check read the caller's tree (part of #2523) - #3607
Merged
Conversation
… caller's tree; the typed snapshot only says it is the same one (part of #2523)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 nowrequire_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_cachestays 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
mutcall onself(§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-auditgreen; battery green. Compiler internals only: no platform leg.