summaryrefslogtreecommitdiff
path: root/chapter33/docs/memory-management.md
diff options
context:
space:
mode:
Diffstat (limited to 'chapter33/docs/memory-management.md')
-rw-r--r--chapter33/docs/memory-management.md33
1 files changed, 25 insertions, 8 deletions
diff --git a/chapter33/docs/memory-management.md b/chapter33/docs/memory-management.md
index 29461b99..6ed805b9 100644
--- a/chapter33/docs/memory-management.md
+++ b/chapter33/docs/memory-management.md
@@ -117,14 +117,31 @@ outside writes, raw addresses, and intrinsic calls need explicit treatment.
The current implementation and regression tests expose these gaps. Neither an
unknown result nor a low incoming-edge count permits a lifetime decision.
-Cofinite imported escape sets also need a defined receiving universe. Renaming
-only their finite exclusions admits caller-private FIDXs into the infinite tail.
-Preserve membership of known remote identities while excluding local identities
-from the anonymous remote remainder. Actual local escapes enter through the
-caller's escape flow. Today type-table loading occurs during parsing, before all
-local identities exist, although SummaryNodes are installed after parsing.
-Import ordering and universe rebasing are pending work; ordinary universal type
-bounds must retain their meaning.
+Parsing discovers external names and dependencies without reading their type
+tables. All queued source units finish parsing before imported types and summaries
+are installed. This establishes the local FIDX, alias and RPC identities before
+renaming any imported sets. Function bodies still load on demand.
+
+For an imported cofinite set, map its finite exclusions by global identity, then
+also exclude receiving identities absent from the file's identity table. Shared
+identities keep their original membership; reserved bits keep their meaning;
+the unknown tail stays infinite. Finite sets only map their members. Mapping the
+whole identity table first prevents a shared identity from being mistaken for a
+new local one. Explicit caller escape flow can subsequently admit local IDs.
+
+Declaration bounds and saved analysis facts need distinct imported views. A
+callback parameter's `ALL` accepts future caller callbacks; a saved escape set's
+`ALL` must exclude caller-private functions. The reader interns both views,
+sharing unchanged types. Function signatures and declared node metadata use
+bounds, while node types and summary states use rebased facts. Unknown callback
+results additionally admit functions exposed by the current caller, so returning
+a supplied callback remains possible. This is conservative; it is not a relational
+argument-to-result summary.
+
+Deferring declarations also requires unresolved field accesses to use bulk
+memory until the real alias is known. An inferred field whose declaration stays
+broad uses the declaration's full-width slot. Implicit conditional zero waits
+for its result family when parsing cannot yet distinguish numeric zero from null.
### Normalized exits