-
Notifications
You must be signed in to change notification settings - Fork 100
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
Should findrefs display context/scope objects? #195
Comments
Including the owning context(s) in the output sounds like a good idea to me. |
SGTM, otherwise one will hit a dead end with objects like that. |
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
A just created a PR llnode/pull/227 to approach this issue. It seems that some Function-Variables are not referenced by any The idea is to store all contexts and look in each one when we try to find references for an object. |
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: #195 PR-URL: #227 Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
When using `findrefs` we should be able to get all references for the given value, this includes `Context` objects. Refs: nodejs#195 PR-URL: nodejs#227 Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Wasn't this addressed in #227? |
Yes. I was keeping this open as a reminder to show stack locals in findrefs, but I'm not even sure it's possible. Closing. |
Let's say we have an object which is not referenced by any other objects, but is scoped by a function or by a script. Should
v8 findrefs [obj addr]
return nothing (current behavior), or should it return the scope this object belongs to? IMO we should change the behavior to return the scope as well, because looking at the output from the example below it seems like there areLero
instances leaking, even though it's not true.Example:
index.js
llnode results
The text was updated successfully, but these errors were encountered: