GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Disallow events in FutexEmulation, but order Wait calls by Andarist · Pull Request #170 · replayio/node

Conversation

@Andarist

@Andarist Andarist commented Oct 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Port of the Chromium V8 fork's "[RUN-2378] Disallow events in FutexEmulation, but order Wait calls" (replayio/chromium-v8 #199), as the file stands there today. The futex emulation's own synchronization (its global mutex, the per-node condition variables and the wait list) now runs with events disallowed in NotifyWake, AtomicsWaitWakeHandle::Wake, WaitSync, WaitAsync, Wake, ResolveAsyncWaiterPromises, HandleAsyncWaiterTimeout, IsolateDeinit and the *ForTesting counters, so none of it is recorded. The public Wait entry point instead asserts on entry and exit through the new recordreplay::AutoAssertMaybeEventsDisallowed scope, which records the order of Wait calls.

Until now the wait was recorded through its condition variable. A recording of a worker blocking in Atomics.wait while the main thread notifies it could not be replayed: every replay crashed with an assert mismatch on the worker thread.

Differences from the Chromium change

  • The scopes use node's existing v8::replayio::AutoDisallowEvents (Chromium renamed to it in [TT-819] Fix Asserts in RejectPromise chromium-v8#226).
  • AutoAssertMaybeEventsDisallowed is declared next to AssertMaybeEventsDisallowed, formats with vsnprintf and asserts through that existing function, which does the same checks.
  • Tasks are not posted while events are disallowed. Node's platform posts through a task queue mutex and uv_async_send, which are the events that order the receiving thread after the post, and asserts in PostTask. Wake collects the tasks resolving other isolates' async waiter promises and posts them after releasing the lock and ending the scope. With the posting inside the scope, a worker's Atomics.waitAsync woken by the main thread replayed with an empty task queue and diverged. WaitAsync posts its timeout task the same way; inside the scope it only left warnings, since it posts to the waiter's own isolate.
  • A post from another thread could already race the waiter isolate's PerIsolatePlatformData::Shutdown: node unregisters an isolate from the platform before disposing it, and nothing synchronized the flush handle. Posting after releasing the futex lock widens that window, so the platform now guards the handle with an ordered mutex (it nests the task queue's and the async handle's ordered locks) and discards a task posted during or after Shutdown.

Testing

Backend case test/node-recording/tests/worker-threads/atomics-wait-notify (branch claude/node-recording-gc-tests): a worker blocks in Atomics.wait with and without a timeout on cells the main thread notifies after a timer, other waits time out or find a changed value, and the same outcomes go through Atomics.waitAsync in the worker and in the main thread; the replay must report the same outcomes and woken counts.

  • On master: records fine, replay crashes with an assert mismatch on the worker thread, 4 of 4 runs.
  • With the Chromium scopes alone: the worker-side waitAsync woken by the main thread still crashed the replay (bisected with program variants); sync waits and the main-thread waitAsync passed.
  • With this change: 5 of 5 runs pass, plus 3 runs after each review round. tests/worker-threads passes; tests/gc has the same 11 failures as master (they need the old-space-GC stack).

Not covered by the test: AtomicsWaitWakeHandle::Wake and the *ForTesting paths.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Andarist @claude
Disallow events in FutexEmulation, but order Wait calls
df13e52
Port of the Chromium V8 fork's "[RUN-2378] Disallow events in
FutexEmulation, but order Wait calls" (replayio/chromium-v8 #199), as the
file stands there today: the futex emulation's own synchronization (its
global mutex, the per-node condition variables and the wait list) runs with
events disallowed in NotifyWake, AtomicsWaitWakeHandle::Wake, WaitSync,
WaitAsync, Wake, ResolveAsyncWaiterPromises, HandleAsyncWaiterTimeout,
IsolateDeinit and the *ForTesting counters, so none of it is recorded, and
the public Wait entry point instead asserts on entry and exit through the
new recordreplay::AutoAssertMaybeEventsDisallowed scope, which records the
order of Wait calls.

Until now the wait was recorded through its condition variable, and a
recording of a worker blocking in Atomics.wait while the main thread
notifies it could not be replayed (assert mismatch on the worker thread).

Differences from the Chromium change:
- The scopes use node's existing v8::replayio::AutoDisallowEvents (the
  Chromium file was renamed to it in #226).
- AutoAssertMaybeEventsDisallowed is declared next to
  AssertMaybeEventsDisallowed (node has no AutoOrderedLock to follow),
  formats with vsnprintf and asserts through the existing
  AssertMaybeEventsDisallowed, which does the same checks.
- Tasks are not posted while events are disallowed: node's platform posts
  through a task queue mutex and uv_async_send, which are the events that
  order the receiving thread after the post, and asserts in PostTask. Wake
  collects the tasks resolving other isolates' async waiter promises and
  posts them after releasing the lock and ending the scope; with the
  posting inside the scope, a worker's Atomics.waitAsync woken by the main
  thread replayed with an empty task queue and diverged. WaitAsync posts
  its timeout task the same way, which otherwise only leaves warnings in
  the recording since it is posted to the waiter's own isolate.
- A post from another thread could already race the waiter isolate's
  PerIsolatePlatformData::Shutdown, since node unregisters an isolate
  from the platform before disposing it and nothing synchronized the
  flush handle; posting after releasing the futex lock widens that
  window, so the platform now guards the handle with an ordered mutex
  and discards a task posted during or after Shutdown.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Andarist
Andarist force-pushed the andarist/futex-emulation-disallow-events branch from ee34fb2 to df13e52 Compare October 6, 2026 09:09
@Andarist
Andarist merged commit e254556 into master Oct 6, 2026
2 of 3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Andarist Andarist mentioned this pull request Oct 7, 2026
Terminate workers blocked in Atomics.wait() when recording #175
Merged
Andarist added a commit that referenced this pull request Oct 7, 2026
@Andarist @claude
Terminate workers blocked in Atomics.wait() when recording
3e56ca9
A worker blocked in Atomics.wait() and terminated while recording never
stopped, so the process never exited. The stop watchdog (#173) invalidated
the recording after 5s and terminated the worker's execution, which woke the
futex wait, but FutexEmulation::WaitSync handles interrupts with events
disallowed (#170), and StackGuard::HandleInterrupts ignores interrupts while
events are disallowed (#173, ported from replayio/chromium-v8#30). The
termination stayed pending and the waiter went back to waiting on the futex
emulation's condition variable, with the parent idle in its event loop,
waiting for the worker's exit.

WaitSync now handles a termination that HandleInterrupts left pending.
Only another thread can terminate a thread blocked there, which already
invalidates the recording (StackGuard::RequestInterrupt), so this doesn't
change what a usable recording or its replay does. Other interrupts are still
left for the next stack check, and without recording HandleInterrupts has
already handled the termination, so the check is a no-op.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Andarist added a commit that referenced this pull request Oct 7, 2026
@Andarist @claude
Terminate workers blocked in Atomics.wait() when recording (#175)
87ef8b5
* Terminate workers blocked in Atomics.wait() when recording

A worker blocked in Atomics.wait() and terminated while recording never
stopped, so the process never exited. The stop watchdog (#173) invalidated
the recording after 5s and terminated the worker's execution, which woke the
futex wait, but FutexEmulation::WaitSync handles interrupts with events
disallowed (#170), and StackGuard::HandleInterrupts ignores interrupts while
events are disallowed (#173, ported from replayio/chromium-v8#30). The
termination stayed pending and the waiter went back to waiting on the futex
emulation's condition variable, with the parent idle in its event loop,
waiting for the worker's exit.

WaitSync now handles a termination that HandleInterrupts left pending.
Only another thread can terminate a thread blocked there, which already
invalidates the recording (StackGuard::RequestInterrupt), so this doesn't
change what a usable recording or its replay does. Other interrupts are still
left for the next stack check, and without recording HandleInterrupts has
already handled the termination, so the check is a no-op.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Stop workers right away once the recording is finished

When recording or replaying, Worker::Exit called from another thread posts
the stop to the worker's event loop and starts the stop watchdog (#173), so
that the worker stops at a point the replay can reproduce. When the parent
exits, through process.exit() or the end of its event loop, the recording is
already finished (RecordReplayFinishRecording runs before
stop_sub_worker_contexts), so there is nothing left to reproduce: a worker
that never returned to its event loop, e.g. one blocked in Atomics.wait(),
held up the exit for the watchdog's 5s for no benefit. Worker::Exit now
stops the worker right away once the recording is finished, as without
recording.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@Andarist Andarist mentioned this pull request Oct 23, 2026
Post FutexEmulation's tasks per notify, and only defer them when recording #189
Merged
Andarist added a commit that referenced this pull request Oct 23, 2026
@Andarist
Post FutexEmulation's tasks per notify, and only defer them when reco…
9eecb21
…rding (#189)

Port of the Chromium V8 fork's "Post FutexEmulation's tasks once events are
allowed again" (replayio/chromium-v8#345), as the file stands there today,
onto #170's port of #199, which already posted the tasks after
releasing g_mutex and ending the disallow scope, but for every run:

- Upstream posts the tasks resolving async waiters' promises and timing
  them out under g_mutex, and keeps doing so when not recording or
  replaying; only then are they queued and posted once the scope and the
  lock have ended. The queue is FutexEmulation::RecordReplayTasksToPost,
  which posts when it goes out of scope: declared before the disallow scope
  in Wake and WaitAsync, it leaves their upstream lines alone and covers
  every return, replacing #170's AsyncWaiterTask vector and the optional
  scope and lock Wake reset by hand.

- While recording or replaying, each Wake also posts its own task for every
  isolate whose waiters it notified, resolving only those: upstream adds a
  notified waiter to the isolate's pending task, if any, so whether a Wake
  posts at all depends on whether the waiter's thread has already run the
  previous task, which the replay doesn't reproduce. The task's
  record_replay_resolve_id picks its waiters out of the isolate's list,
  which still holds them all, so IsolateDeinit cleans them up as before.

The backend's node-recording case worker-threads/atomics-wait-async-notify-
rounds mismatched in four replays out of four without this.
@Andarist Andarist mentioned this pull request Nov 2, 2026
Shut a worker's platform data down after releasing per_isolate_mutex_ #218
Merged
Andarist added a commit that referenced this pull request Nov 2, 2026
@Andarist @claude
Shut a worker's platform data down after releasing per_isolate_mutex_ (…
904fbe1
…#218)

NodePlatform::UnregisterIsolate called PerIsolatePlatformData::Shutdown
with per_isolate_mutex_ held, and Shutdown takes ordered locks: the
ordered flush_tasks_mutex_ (since #170) and, closing flush_tasks_, the
uv_async_t's ordered lock. per_isolate_mutex_ itself isn't ordered (GC
tasks posted at nondeterministic points reach it through ForIsolate), so
a replay can hand it to the exiting worker before the main thread, which
the recording gave it first. The worker then waits for the main thread's
turn on its flush_tasks_mutex_ (the main thread posts to the worker's
isolate, e.g. an Atomics.notify resolving a waitAsync), while the main
thread waits for per_isolate_mutex_, e.g. in ScavengeJob's
GetForegroundTaskRunner.

That is the node-recording worker-threads/atomics-wait-async-notify-
terminating-worker replay Hanged: the hang report has the main thread
waiting to acquire a lock owned by a worker thread, which waits on an
ordered lock whose next owner is the main thread, and gdb on a hung
replay shows the worker in Worker::Run -> UnregisterIsolate ->
Shutdown -> pthread_mutex_lock -> OrderedLock and the main thread in
ScavengeJob::ScheduleTaskIfNeeded -> ForIsolate -> uv_mutex_lock.

The entry is now erased under the mutex and its data shut down after
releasing it. Other threads post through task runners they got while
the isolate was registered (futex waiters, wasm), which Shutdown still
handles under flush_tasks_mutex_; a lookup of the entry in between fails
just as one after UnregisterIsolate always did.

Co-authored-by: Claude Opus 5.5 <[email protected]>
bhackett1024 pushed a commit that referenced this pull request Nov 5, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
2d206e4
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189 and #191.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
d6cc85f
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Domiii
@Andarist @claude
Add core V8 record/replay API surface
32a0ac1
Add the v8::recordreplay public API class with methods for recording
state, event control, pointer registration, ordered locks, and the
C API bridge functions and driver symbol loading in api.cc.

Add include/replayio.h with RAII helpers (AutoPassThroughEvents,
AutoDisallowEvents with an optional label, AutoMarkReplayCode) and
include/replayio-macros.h with REPLAY_ASSERT macros usable from C.
Asserts are skipped when the driver disables them, warnings go through
RecordReplayWarning, and progress notifications are ignored while
events are disallowed. When JS progress asserts are enabled, progress
data is handed to the recorder through its assert data callbacks.

The driver can disable individual features at runtime, so
IsRecordingOrReplaying() takes an optional feature name and
FeatureEnabled() asks the driver, with the check skipped entirely when
nothing is disabled.

replayio-macros.h also declares RecordReplayWarningField, the driver's
layout for one typed detail of a warning (a string, integer, double or
bool under a key), and the V8RecordReplayWarning entry point that takes
a warning kind plus an array of those fields.

The scope helpers and the rest of the C++ surface live here too:
AutoAssertMaybeEventsDisallowed, which asserts its message on entry and
exit so the recording orders the scope unless events are disallowed,
AutoOrderedLock, and AreEventsPassedThrough(), each defined next to the
driver symbol it calls.

Rebase note: these headers mirror the driver's ABI. Every driver
function is looked up by name in api.cc, so a new recordreplay::
method needs its symbol loaded there, and RecordReplayWarningField's
layout and the V8RecordReplay* signatures have to match the driver
that REPLAY_BACKEND_REV pins.

Includes later changes from #128, #129, #132, #137, #159, #161, #162,
#170, #173, #190, #191 and #202.

Co-authored-by: Domi <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
ee3a671
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Domiii
@Andarist @claude
Add core V8 record/replay API surface
d90615a
Add the v8::recordreplay public API class with methods for recording
state, event control, pointer registration, ordered locks, and the
C API bridge functions and driver symbol loading in api.cc.

Add include/replayio.h with RAII helpers (AutoPassThroughEvents,
AutoDisallowEvents with an optional label, AutoMarkReplayCode) and
include/replayio-macros.h with REPLAY_ASSERT macros usable from C.
Asserts are skipped when the driver disables them, warnings go through
RecordReplayWarning, and progress notifications are ignored while
events are disallowed. When JS progress asserts are enabled, progress
data is handed to the recorder through its assert data callbacks.

The driver can disable individual features at runtime, so
IsRecordingOrReplaying() takes an optional feature name and
FeatureEnabled() asks the driver, with the check skipped entirely when
nothing is disabled.

replayio-macros.h also declares RecordReplayWarningField, the driver's
layout for one typed detail of a warning (a string, integer, double or
bool under a key), and the V8RecordReplayWarning entry point that takes
a warning kind plus an array of those fields.

The scope helpers and the rest of the C++ surface live here too:
AutoAssertMaybeEventsDisallowed, which asserts its message on entry and
exit so the recording orders the scope unless events are disallowed,
AutoOrderedLock, and AreEventsPassedThrough(), each defined next to the
driver symbol it calls.

Rebase note: these headers mirror the driver's ABI. Every driver
function is looked up by name in api.cc, so a new recordreplay::
method needs its symbol loaded there, and RecordReplayWarningField's
layout and the V8RecordReplay* signatures have to match the driver
that REPLAY_BACKEND_REV pins.

Includes later changes from #128, #129, #132, #137, #159, #161, #162,
#170, #173, #190, #191 and #202.

Co-authored-by: Domi <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
662f438
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Andarist
Add core V8 record/replay API surface
438e7c5
Add the v8::recordreplay public API class with methods for recording
state, event control, pointer registration, ordered locks, and the
C API bridge functions and driver symbol loading in api.cc.

Add include/replayio.h with RAII helpers (AutoPassThroughEvents,
AutoDisallowEvents with an optional label, AutoMarkReplayCode) and
include/replayio-macros.h with REPLAY_ASSERT macros usable from C.
Asserts are skipped when the driver disables them, warnings go through
RecordReplayWarning, and progress notifications are ignored while
events are disallowed. When JS progress asserts are enabled, progress
data is handed to the recorder through its assert data callbacks.

The driver can disable individual features at runtime, so
IsRecordingOrReplaying() takes an optional feature name and
FeatureEnabled() asks the driver, with the check skipped entirely when
nothing is disabled.

replayio-macros.h also declares RecordReplayWarningField, the driver's
layout for one typed detail of a warning (a string, integer, double or
bool under a key), and the V8RecordReplayWarning entry point that takes
a warning kind plus an array of those fields.

The scope helpers and the rest of the C++ surface live here too:
AutoAssertMaybeEventsDisallowed, which asserts its message on entry and
exit so the recording orders the scope unless events are disallowed,
AutoOrderedLock, and AreEventsPassedThrough(), each defined next to the
driver symbol it calls.

Rebase note: these headers mirror the driver's ABI. Every driver
function is looked up by name in api.cc, so a new recordreplay::
method needs its symbol loaded there, and RecordReplayWarningField's
layout and the V8RecordReplay* signatures have to match the driver
that REPLAY_BACKEND_REV pins.

Includes later changes from #128, #129, #132, #137, #159, #161, #162,
#170, #173, #190, #191 and #202.

Co-authored-by: Domi <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Andarist
Add core V8 record/replay API surface
3d615e5
Add the v8::recordreplay public API class with methods for recording
state, event control, pointer registration, ordered locks, and the
C API bridge functions and driver symbol loading in api.cc.

Add include/replayio.h with RAII helpers (AutoPassThroughEvents,
AutoDisallowEvents with an optional label, AutoMarkReplayCode) and
include/replayio-macros.h with REPLAY_ASSERT macros usable from C.
Asserts are skipped when the driver disables them, warnings go through
RecordReplayWarning, and progress notifications are ignored while
events are disallowed. When JS progress asserts are enabled, progress
data is handed to the recorder through its assert data callbacks.

The driver can disable individual features at runtime, so
IsRecordingOrReplaying() takes an optional feature name and
FeatureEnabled() asks the driver, with the check skipped entirely when
nothing is disabled.

replayio-macros.h also declares RecordReplayWarningField, the driver's
layout for one typed detail of a warning (a string, integer, double or
bool under a key), and the V8RecordReplayWarning entry point that takes
a warning kind plus an array of those fields.

The scope helpers and the rest of the C++ surface live here too:
AutoAssertMaybeEventsDisallowed, which asserts its message on entry and
exit so the recording orders the scope unless events are disallowed,
AutoOrderedLock, and AreEventsPassedThrough(), each defined next to the
driver symbol it calls.

Rebase note: these headers mirror the driver's ABI. Every driver
function is looked up by name in api.cc, so a new recordreplay::
method needs its symbol loaded there, and RecordReplayWarningField's
layout and the V8RecordReplay* signatures have to match the driver
that REPLAY_BACKEND_REV pins.

Includes later changes from #128, #129, #132, #137, #159, #161, #162,
#170, #173, #190, #191 and #202.

Co-authored-by: Domi <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
0e98ef8
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
73e150e
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
17c7eeb
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
4521663
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
46fa1ee
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
23fedaf
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
e80bf39
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
cea1052
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
201d70c
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
324209c
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
4e7cbea
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
b7d66b7
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
d4c6812
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
3093567
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
21514c3
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
6a317d1
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
a41c17c
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
b38a783
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
a7b493e
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
b1a5ce3
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
2bf7606
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
7f816b0
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 10, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
84c1749
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 11, 2026
@Andarist
Disallow events in FutexEmulation and order its waits and wakes
7a11c87
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 11, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
2eb704a
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 11, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
99756a4
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 12, 2026
@Andarist @bhackett1024 @claude
Disallow events in FutexEmulation and order its waits and wakes
8a4c947
The futex emulation's own synchronization, the global mutex, the
waiters' condition variables and the wait list, now runs with events
disallowed, so none of it is recorded; the public Wait entry point
asserts on entry and exit instead, which records the order of the
waits. Recorded through its condition variable, a worker blocking in
Atomics.wait while the main thread notified it could not be replayed.

What the replay has to agree on is ordered explicitly: every notify,
every waiter entering or leaving the wait list and the removal of a
dying isolate's waiters take one ordered lock, the same number of times
on every path. A wait records whether it found another value, since the
program's stores to that memory aren't recorded, and one ending woken
or timed out decides again under the lock, so the replay can't time out
a wait the recording's notify woke.

Tasks aren't posted from inside the disallow scopes, which node's
platform asserts on, but queued and posted once the scope and the lock
have ended; each notify posts its own task per isolate, resolving by id
the waiters it notified, so whether it posts doesn't depend on how far
their thread has got. A wait also handles a termination the stack guard
left pending, so a worker blocked in Atomics.wait() can still be
stopped. That termination runs with events allowed: either this thread
requested it before waiting, e.g. a worker's own process.exit(), which
the replay reaches the same way and whose assert has to be recorded, or
another thread did, which already invalidated the recording.

Rebase note: the only things recorded here are the Wait asserts, the
ordered lock rounds and the bit saying whether a wait found another
value. Upstream reworks this file often: re-derive those from the new
control flow, keeping the lock rounds equal on every path and posting
no task while events are disallowed.

From #170, #175, #189, #191 and #226.

Co-authored-by: Brian Hackett <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Andarist
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.