Skip to content

Conversation

@aapoalas
Copy link
Member

This implements half of #623. I also tried out using SoAVec as the storage for FinalizationRegistryRecords and it works pretty wonderfully from a code-organisation point of view at least. Methods that have to do with registration belong on the Cells struct and touch only one cache line, methods that have to do with cleanup belong on the Cleanup struct and touch only one cache line, the backing object is a third cache line, and finally the only time when these cache lines interact is during GC. Nice.

@aapoalas aapoalas linked an issue Nov 23, 2025 that may be closed by this pull request
@aapoalas aapoalas merged commit 5f43606 into main Nov 23, 2025
8 checks passed
@aapoalas aapoalas deleted the feat/ecmascript-finalization-registry branch November 23, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WeakMap & FinalizationRegistry

2 participants