Unused members in JMemoryBuddy
    Nir Lisker 
    nlisker at gmail.com
       
    Fri Jan 21 07:07:02 UTC 2022
    
    
  
Hi,
Looking at JMemoryBuddy, there are unused fields and methods. It's not
clear if they were left in by mistake or are part of future work.
* line 89: AssertCollectable assertCollectable = new
AssertCollectable(weakReference);
* line 237: the method setMxBeanProxyName
* line 309: setAsReferenced
The last one is part of the class SetAsReferenced, which is used in the
memoryTest method's  setAsReferenced, but the list it is added to is never
read from. Could be that it just holds references so that they won't be
collected.
Are these needed?
- Nir
    
    
More information about the openjfx-dev
mailing list