From 58ede6e92922602a4b4f1b46cdcb8b6082e931e7 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 4 Dec 2026 14:52:23 -0800 Subject: Publish escapes from the selected field value Keep prior public escapes and derive new escapes from the field value bounded by its declaration. Do not import unrelated aggregate-private escapes or broaden them when selecting a weaker alias slice. Cover callback publication, alias selection, borrows, and opaque referents. Full make -k -j8 tests passes. --- .../main/java/com/seaofnodes/simple/node/EscapeNode.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'chapter33/src/main/java') diff --git a/chapter33/src/main/java/com/seaofnodes/simple/node/EscapeNode.java b/chapter33/src/main/java/com/seaofnodes/simple/node/EscapeNode.java index 3c759c48..cc1b3b58 100644 --- a/chapter33/src/main/java/com/seaofnodes/simple/node/EscapeNode.java +++ b/chapter33/src/main/java/com/seaofnodes/simple/node/EscapeNode.java @@ -93,14 +93,13 @@ public class EscapeNode extends TypeNode { // edge, not publication to unknown callers. Keep the public escape sets. if( _borrow ) return TypeMem.make(fld._alias,t,false,false,false,mpub._escFs,mpub._escAs); - TypeSet fidxes = mpriv._escFs.meet(mpub._escFs); - TypeSet aliases = mpriv._escAs.meet(mpub._escAs); - // Keep escapes from the actual private value before narrowing it to - // the declaration. Selecting its Store from a MemMerge must preserve - // this result, including Scalar.BOT's unknown pointer escapes. - TypeMem defaults = CodeGen.CODE._phase.ordinal()