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> |
||
|---|---|---|
| .. | ||
| before-exit.mjs | ||
| close.mjs | ||
| different-registry-per-thread.mjs | ||
| finalization-cleanup.mjs | ||
| gc-not-close.mjs | ||
| unregister.mjs | ||