Hi,
Checking the Memory > Reachability view it looks like "Objects pending finalization" are also counted as retained via strong references.
Is this behavior correct? If so, what is the explanation?
For example I get this:
See the retained size where strong references is 95% and objects pending finalization is 94%.
This memory dump was taken executing this test, after objects creating before invoking garbage collection.
Thanks,
Asier
Reachability: objects pending finalization retained also as strongly referenced
-
- Posts: 1
- Joined: Mon May 08, 2023 12:41 pm
-
- Posts: 1626
- Joined: Tue Aug 10, 2004 7:52 pm
Re: Reachability: objects pending finalization retained also as strongly referenced
This behavior is intentional and correct: object can be resurrected and become strongly reachable after invoking .finalize().
Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"