node/test/fixtures/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
..
before-exit.mjs
close.mjs test: keep finalization close fixture ref alive 2026-06-25 06:22:46 +00:00
different-registry-per-thread.mjs test: reduce flakiness of different-registry-per-thread 2026-05-12 10:09:13 +02:00
finalization-cleanup.mjs process: fix finalization cleanup ref tracking 2026-06-30 21:38:02 +00:00
gc-not-close.mjs
unregister.mjs