You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bridge: implement managed references, identity, and lifetime semantics #159
First managed-lifetime slice landed through e1de668. JSManagedValue now uses a real JavaScript WeakRef for object targets, keeps primitives directly, and JSVirtualMachine owner relations promote targets strongly without retaining owners. Focused ARC evidence covers primitive/object identity, owner add/remove, cross-VM rejection, weak-owner teardown, and no premature loss under the current VM-lifetime arena policy. All six managed-value/VM declarations are inventoried implemented; the issue remains open for arbitrary exported-wrapper identity, autorelease/VM teardown stress, and collecting-context-group evidence (current groups intentionally retain arena values until VM teardown).
Wrapper identity/lifetime evidence is now complete through e45bc02: Objective-C objects round-trip with pointer identity, JS object reads return canonical JSValue wrappers by strict equality even when raw C handle addresses differ, temporary VM/context/native graphs release at autorelease-pool teardown, weak owners are not retained, and cross-VM value/managed relations raise NSInvalidArgumentException. The pinned differential is 8/8 rows (bc1860c0e6e8d919). Wrapper-cache and ownership-definition acceptance boxes are checked; conditional collection, exact duplicate relation accounting, deeper stress/fault injection remain open.
Lifetime evidence advanced through bc4d89b and c38f621. Managed roots now live on their owners, so owner death deterministically releases the rooted JSValue graph; export method/prototype caches retain raw VM-lifetime handles instead of context-retaining JSValue wrappers. zig build test-objc-api-evidence passes 200 VM/context/autorelease teardown cycles, ASan+UBSan, and Apple leaks with 0 leaked bytes. Remaining scope is explicit: conditional mid-VM clearing cannot occur under the current VM-lifetime arena policy, and bridge allocation/registration rollback still needs fault injection.
Completed through f29ca38 with child #161 closed. Managed factories and conditional clearing, exact owner/object relations, identity caches, teardown and cross-VM rules, forced-GC/autorelease/nested/duplicate/owner-death/context-death stress, 200-cycle sanitizer/leak evidence, and deterministic rollback injection are all implemented and documented.
Activity
feat(objc): add managed value ownership (#159)
docs(objc): record managed lifetime coverage (#159)
chrisbbreuer commentedon Jul 17, 2026
First managed-lifetime slice landed through e1de668.
JSManagedValuenow uses a real JavaScript WeakRef for object targets, keeps primitives directly, andJSVirtualMachineowner relations promote targets strongly without retaining owners. Focused ARC evidence covers primitive/object identity, owner add/remove, cross-VM rejection, weak-owner teardown, and no premature loss under the current VM-lifetime arena policy. All six managed-value/VM declarations are inventoried implemented; the issue remains open for arbitrary exported-wrapper identity, autorelease/VM teardown stress, and collecting-context-group evidence (current groups intentionally retain arena values until VM teardown).feat(objc): preserve cross-runtime wrapper identity (#159)
test(objc): diff wrapper identity with JSC (#159)
test(objc): reject cross-VM wrapper ownership (#159)
docs(objc): publish wrapper identity evidence (#159)
chrisbbreuer commentedon Jul 17, 2026
Wrapper identity/lifetime evidence is now complete through e45bc02: Objective-C objects round-trip with pointer identity, JS object reads return canonical JSValue wrappers by strict equality even when raw C handle addresses differ, temporary VM/context/native graphs release at autorelease-pool teardown, weak owners are not retained, and cross-VM value/managed relations raise NSInvalidArgumentException. The pinned differential is 8/8 rows (
bc1860c0e6e8d919). Wrapper-cache and ownership-definition acceptance boxes are checked; conditional collection, exact duplicate relation accounting, deeper stress/fault injection remain open.fix(objc): break managed and export retain cycles (#159)
chrisbbreuer commentedon Jul 17, 2026
Lifetime evidence advanced through bc4d89b and c38f621. Managed roots now live on their owners, so owner death deterministically releases the rooted JSValue graph; export method/prototype caches retain raw VM-lifetime handles instead of context-retaining JSValue wrappers.
zig build test-objc-api-evidencepasses 200 VM/context/autorelease teardown cycles, ASan+UBSan, and Appleleakswith 0 leaked bytes. Remaining scope is explicit: conditional mid-VM clearing cannot occur under the current VM-lifetime arena policy, and bridge allocation/registration rollback still needs fault injection.chrisbbreuer commentedon Jul 17, 2026
Completed through f29ca38 with child #161 closed. Managed factories and conditional clearing, exact owner/object relations, identity caches, teardown and cross-VM rules, forced-GC/autorelease/nested/duplicate/owner-death/context-death stress, 200-cycle sanitizer/leak evidence, and deterministic rollback injection are all implemented and documented.