Bug 46116

GemStone/S 64 Bit

3.3, 3.2.16, 3.2.15, 3.2.14, 3.2.13, 3.2.12, 3.2.11, 3.2.10, 3.2.9, 3.2.8.1, 3.2.8, 3.2.7, 3.2.6, 3.2.5, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2, 3.1.0.6, 3.1.0.5, 3.1.0.4, 3.1.0.3, 3.1.0.2, 3.1.0.1, 3.1, 3.0.1, 3.0

3.3.1

Unreferenced Class may not get GCed if class variable holds reference to instance

If a application class has a class variable, and that variable references an instance of the class, and the size of the instance is 0, then the internal handling of the class during voting does not perform reference checks, it is simply voted to not garbage collect.  Under these cirumstances, the class will not get garbage collected even though there are no other references to the class or any instance of the class.

Because of limitations in findReferences when the target is a class, the problem is not easily detected.

Workaround

Clear out references from the class variable.


                

Last updated: 5/25/16