diff options
| author | Cliff Click <cliffc@acm.org> | 2026-12-03 09:15:00 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-12-03 09:15:00 -0800 |
| commit | ddab8b84511ccab8ec04edc8f2f03174b081c926 (patch) | |
| tree | af67112c7a3e2d2d871da155bcebec295c1d4da4 /chapter33/docs | |
| parent | d9a46e588fe09ed58e160778b0d8dcee62d4d0e4 (diff) | |
| download | Simple-ch33_wip.tar.gz Simple-ch33_wip.zip | |
restructure parsing vs loadingch33_wip
Get all the new FIDXs loaded up-front, so loading infinite-extent sets can exclude the known
Diffstat (limited to 'chapter33/docs')
| -rw-r--r-- | chapter33/docs/memory-management.md | 33 |
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 |
