Skip to content

v8: avoid V8 worker hang during platform shutdown#64283

Open
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:v8
Open

v8: avoid V8 worker hang during platform shutdown#64283
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:v8

Conversation

@Archkon

@Archkon Archkon commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64274

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jul 4, 2026
@Archkon Archkon force-pushed the v8 branch 2 times, most recently from d972656 to 78a8fa3 Compare July 4, 2026 13:36
@jasnell

jasnell commented Jul 4, 2026

Copy link
Copy Markdown
Member

@nodejs/v8

@Archkon Archkon changed the title src: avoid V8 worker hang during platform shutdown v8: avoid V8 worker hang during platform shutdown Jul 5, 2026
@addaleax

addaleax commented Jul 5, 2026

Copy link
Copy Markdown
Member

Same comment as on #64268 -- this would heavily benefit from a commit message that explains the what, how and why of the change

Node could hang during shutdown while joining V8 worker threads if a
worker was parked waiting for foreground GC work.

This can happen when a V8 background task requests GC from the main
isolate thread during process exit, after Node has stopped processing
foreground tasks but before the platform worker pool is joined.

Flush foreground tasks for registered Node isolates before shutting down
the worker task runner so pending GC work can run and release parked
workers.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@Archkon

Archkon commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Same comment as on #64268 -- this would heavily benefit from a commit message that explains the what, how and why of the change

Done, thanks for the helpful reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hang at shutdown

4 participants