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
No-GIL debugger: make script and statement registries race-free #314
The no-GIL PR-249 case jit/int-gate-stop-budget.js produced a
suppression-free TSan race between:
registerParsedDebugScript mutating the shared Context.debug_statement_locations AutoHashMap while a child constructs a
dynamic Function; and
serviceDebugStatement reading the same map from another child.
The same transaction also mutates debug_scripts and next_debug_script_id unsafely, so fixing only the reported map access would
leave duplicate IDs/list corruption latent.
Acceptance
Serialize script ID assignment, script-list publication, notify-hook
installation/removal, location-map mutation, and all concurrent reads.
Keep single-threaded and GIL execution on the lock-free path.
Never expose a partially registered script/location record.
Add a deterministic multi-thread dynamic-Function witness with exact
script-ID uniqueness and result checks.
Pass focused normal and suppression-free TSan tests.
Re-run the exact jit/int-gate-stop-budget.js TSan witness.
Observe a green replacement full CI shard before closing.
Local evidence
zig build test -Dtest-filter="debug registry": 3/3 passed.
zig build test -Dtest-filter="debug registry" -Dtsan=true: 3/3 passed,
suppression-free.
Replacement run 29697559754 passed all four normal unit shards and the suppression-free tsan-parallel-js job on 7650986f. The shared script/location registry race is no longer present.
Activity
fix(debugger): serialize shared script registries (#314)
chrisbbreuer commentedon Jul 19, 2026
Landed on
mainas c0ea1fa.Validation:
zig build test -Dtest-filter="debug registry": 3/3 passedzig build test -Dtest-filter="debug registry" -Dtsan=true: 3/3 passed, suppression-freejit/int-gate-stop-budget.jspassed 1/1 in 26.3szig build test -Dtest-filter=inspector: 20/20 passedThe replacement full-CI result remains the only open acceptance item.
chrisbbreuer commentedon Jul 19, 2026
Replacement run
29697559754passed all four normal unit shards and the suppression-freetsan-parallel-jsjob on7650986f. The shared script/location registry race is no longer present.