ClassUnloading option

Ion Ionascu ionionascu at gmail.com
Fri Jun 8 14:34:45 UTC 2012


Hi,


Could you please explain how the option ClassUnloading actually works? I
found it being mentioned on the internet, but I haven't been able to find
too much documentation about it.

In fact I am curious how class-unloading works from JVM/GC's point of view.
I am asking this because as far I can see the ClassLoader class has a
private property *classes* which stores a reference to each loaded class so
a class should not be unloaded (garbage collected) without its classloader
being gc-ed first. So, a property like ClassUnloading should only allow the
unloading of classes which are no longer referenced by their classloader.


Thank you,
Ion Ionascu

www.ionionascu.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20120608/94aa0136/attachment.htm>


More information about the hotspot-gc-dev mailing list