Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use WeakRef instead of weak-napi for GC tests + chore: add debugging configuration for VsCode #631

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

aminya
Copy link
Member

@aminya aminya commented Jun 18, 2024

This changes the GC tests to use the native WeakRef, which is easier to work with than weak-napi.

I dived deep into the reason why some of the GC tests were failing, and I realized the last GC finalizer test was not helpful as the Socket is not closed resulting in global sharing of the context, so no GC happens for that. The rest of the GC tests are passing now.

Fixes #466
Fixes #390
Related to #529

Closes #612 (squashed as the first commit)

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.

[6.x] Troubleshooting memory leaks Subscriber Memory Leak
2 participants