test,n-api: delete strong ref w/o unrefing first#34822
Closed
gabrielschulhof wants to merge 2 commits intonodejs:masterfrom
Closed
test,n-api: delete strong ref w/o unrefing first#34822gabrielschulhof wants to merge 2 commits intonodejs:masterfrom
gabrielschulhof wants to merge 2 commits intonodejs:masterfrom
Conversation
Member
|
It's great that this fixes the test, but it still seems counterintuitive that unref'ing a reference can lead to a memory leak? I would not say that this "Fixes:" the issue. |
Contributor
Author
|
@addaleax you're right. We should either document that strong references must not be weakened before getting deleted or figure out how to accommodate weakening them before deletion. I'll replace the "Fixes" with "Re". |
Re: nodejs#34731 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
a24d6ed to
2a8342e
Compare
Member
|
I agreed and unless there is some V8 level limitation I think it should be |
Member
|
I'd also lean towards not landing this until we better understand the issue, as it provides the reminder that we need to fix the underlying problem. |
addaleax
approved these changes
Aug 18, 2020
This was referenced May 27, 2022
This was referenced Oct 5, 2022
This was referenced Oct 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #34731
Signed-off-by: @gabrielschulhof
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes