Repository navigation
Conversation
…and dead setter are gone, and a phase must hand back the pool it was given (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 (its step 3: the pool swaps in
Zcu). The issue stays open.Zcu.frontend_poolis removed. It was a third holder of the intern pool that nothing read: it was synced once per compile and printed in two debug lines.Zcu.set_poolis removed: no callers.self.pool = sema.pool.clone()inZcu.sync_from_semaandself.pool = pre_sema.pool.clone()before the comptime transform, now require that it is the same pool (InternPool.require_same_storage, asAstPoolalready has) and store nothing.That requirement is the measurement the issue needed: across the stage chain, the behaviour tests, the tool's internals tests and the whole battery (the language server and the other drivers included) it never fires. So in the compiler every phase already interns into the compilation's one pool, and those swaps were no-ops. Four
.clone()holder counts are gone; the rest are fields that keep a handle for a phase's lifetime, which is the larger half of the issue.Evidence at 4fa3749: both compilers check the source; release build;
:unit-return-review,:ceremony-census,:self-audit,:behavior-tests,:internals-compiler-testsgreen; battery green. Compiler internals only: no platform leg.