-
Notifications
You must be signed in to change notification settings - Fork 567
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
fix: avoid mem leak #2025
fix: avoid mem leak #2025
Conversation
@jamesdiacono @stalkerg Can you try and see if this fixes your issue? |
If this helps it almost feels like a V8 bug. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2025 +/- ##
==========================================
- Coverage 90.45% 89.91% -0.55%
==========================================
Files 71 63 -8
Lines 6174 5610 -564
==========================================
- Hits 5585 5044 -541
+ Misses 589 566 -23
... and 15 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
I will try today, not so easy however in my case. |
No, it's not helped me. |
I think the reason is somewhere here: signal.addEventListener('abort', abort, { once: true })
requestFinalizer.register(this, { signal, abort }) Because our Also possible this: this[kSignal] = ac.signal
this[kSignal][kRealm] = this[kRealm] the reason why |
Very interesting! If I comment this |
I found here https://v8.dev/features/weak-references totally the same example and explanation why WeakRef is needed:
|
Refs: nodejs/node#46435
Refs: #1926