Repository navigation
Fix: preserve A5 Scalar observers throughout resident execution - #3000
Conversation
Keep the resident's Scalar binding active across bootstrap and dispatch. Nested helpers must not clear the observer owned by the outer scope; otherwise L3 omits memory primitives while reporting a complete capture. Exercise both phases with a bound recorder and assert that atomic, bypass-load, cache-publication and barrier records are emitted.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
A5 L3 captures can omit memory primitives even when capture counters report zero drops and exclusive-time accounting balances. Bootstrap and the dispatch loop clear the Scalar observer after the resident entry has bound it.
Preserve the resident-owned binding across both phases. Keep initialization and teardown cleanup at the resident boundary. Add regressions that execute real bootstrap and dispatch paths and require atomic, bypass-load, cache-publication and barrier records.
Validation:
git diff --checkpass.Related to #2991.