node/lib/internal/process
Trivikram Kamat 75aec8ecf8
process: fix finalization cleanup ref tracking
Use SafeSet collections for finalization refs so insertion, removal,
and emptiness checks match the identity-based tracking model.

This also fixes cleanup removal for collected refs. Previously cleanup
used the ref index as the splice delete count, which could remove later
live refs when the collected ref was not first.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64087
Fixes: https://github.com/nodejs/node/issues/64086
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-06-30 21:38:02 +00:00
..
execution.js
finalization.js process: fix finalization cleanup ref tracking 2026-06-30 21:38:02 +00:00
per_thread.js
permission.js lib,permission: add permission.drop 2026-05-26 13:40:14 +00:00
pre_execution.js lib,permission: add permission.drop 2026-05-26 13:40:14 +00:00
promises.js src: skip JS callback for settled Promise.race losers 2026-05-05 19:53:04 -07:00
report.js permission: handle process.chdir on writereport 2026-06-18 06:29:23 +02:00
signal.js
task_queues.js process: handle rejections only when needed 2026-04-26 08:39:10 +00:00
warning.js
worker_thread_only.js