[693] in java-interest

home help back first fref pref prev next nref lref last post

are classes garbage collected ?

daemon@ATHENA.MIT.EDU (Anselm.BairdSmith)
Thu Jul 13 14:03:09 1995

Date: Thu, 13 Jul 1995 18:45:14 +0200
From: "Anselm.BairdSmith" <Anselm.Baird_Smith@inria.fr>
To: java-interest@java.sun.com


Hi,

I am wondering whether classes can be garbage collected when they have
no more instances, and no more life subclasses etc. ?  

After a quick look at URL.java and WWWClassLoader.java it seems that
Applet classes can never get garbage collected because they are at
least referenced by the 'classes' hashtable in WWWClassLoader which
are themselves referenced by the (static) classloaders hashtable in
URL. 

Did I miss something ? As I am planning to have my application load
lots of different classes for short lived instances, I wish I could
get rid of unused classes.

Thanks,

Anselm.

Anselm.BairdSmith@inria.fr - http://www.inria.fr/koala/abaird.html


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post