Repository navigation
win: new icon - #354
Closed
piscisaureus wants to merge 0 commit into
Closed
win: new icon#354piscisaureus wants to merge 0 commit into
piscisaureus wants to merge 0 commit into
Conversation
Member
|
lgtm |
piscisaureus
added a commit
that referenced
this pull request
Jan 14, 2015
PR: #354 Reviewed-by: Rod Vagg <rod@vagg.com>
piscisaureus
force-pushed
the
win-icon
branch
from
January 14, 2015 02:08
ccb04c8 to
2742613
Compare
jonsey247
added a commit
to jonsey247/node
that referenced
this pull request
Jun 6, 2017
jonsey247
added a commit
to jonsey247/node
that referenced
this pull request
Jun 6, 2017
jonsey247
added a commit
to jonsey247/node
that referenced
this pull request
Jun 6, 2017
…dejs#354 -emits -> Emits a removeListener event if and only if the listener was removed.
jonsey247
added a commit
to jonsey247/node
that referenced
this pull request
Jun 6, 2017
…dejs#354 Emits a removeListener event if and only if the listener was removed.
Andarist
added a commit
to replayio/node
that referenced
this pull request
Oct 30, 2026
* Run V8's incremental marking and memory reducer as upstream when recording/replaying Port of the GC parts of replayio/chromium-v8#354 and of replayio/chromium-v8#364, in the state they have on chromium-v8's master. * Use incremental marking when replaying too, not only when recording. * Tie the GC changes to the v8-flags-gc feature (gRecordReplayEnableGCFeatures). With it disabled, incremental marking is off when recording and replaying, and the old generation expands where incremental marking would have started, as when replaying before. * Run V8's memory reducer when recording/replaying. Whether it asks for its timer depends on the GC's history, which differs between recording and replaying, and it often asks with events disallowed. The request is remembered and the timer posted at the next point which replays, if the recording had a request and no posted timer is pending: after the timer task, after a context disposal, or at a progress interrupt, which every request triggers when recording (nodejs#364; the driver side, replayio/backend#13594, is already in REPLAY_BACKEND_REV). The timer task runs with events disallowed, only acts when the reducer is waiting, and runs a full GC instead of starting idle incremental marking, whose tasks node's platform drops. It is no longer marked non-deterministic, so the platform runs it. * Only run API interrupt callbacks at progress interrupts with the "interrupts" feature enabled, as the memory reducer triggers progress interrupts too. The Sparkplug parts of nodejs#354 were ported as #206 and #207. Concurrent and parallel GC stay disabled here: node's platform can't run the GC's jobs yet (next commit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use concurrent and parallel GC when recording/replaying The rest of "Use concurrent, parallel and incremental GC when replaying" from replayio/chromium-v8#354. Chromium's fork had them on when recording already; node had them off in both, as its platform couldn't run the GC's jobs: the GC posts them with events disallowed, at points which don't replay, and DefaultJobState::NotifyConcurrencyIncrease dropped those. Chromium's base runs tasks posted with events disallowed on a fixed-size thread group whose threads run with events disallowed. NodePlatform gets the same when recording/replaying: an unordered WorkerThreadsTaskRunner of 4 threads, on a task queue with a plain lock, which CallOnWorkerThread uses while events are disallowed. Its threads are created at startup, where creating threads replays (creating them with events disallowed calls getrlimit with events disallowed, which fails the replay), disallow events for their whole run, and are never joined. A job created with events disallowed posts its workers with events disallowed, so they go there too. Other jobs still don't add workers with events disallowed. With v8-flags-gc disabled, the flags stay off as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Run the GC's foreground tasks at the next event loop iteration when recording/replaying V8 marks the tasks the GC posts to the isolate's thread (incremental marking, scavenge and sweeping tasks) as non-deterministic: they are posted at points which don't replay. Node's platform dropped them when recording/replaying, so incremental marking only advanced as the program allocated. One left running when a program went idle never finished, and the memory reducer's timer then couldn't start its GC either ("waiting for 8000 ms" again, with 34 MB marked on background threads): with --optimize-for-size, an idle recording's heap shrank in 3 of 4 runs. Chromium's fork runs such tasks with its next task. Node's platform now queues them and runs them with events disallowed at the next event loop iteration, from a check handle, which happens at the same point when replaying. The incremental marking and scavenge tasks are enabled again with v8-flags-gc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
R=@rvagg