[1972] in java-interest
Re: GC and Class management
daemon@ATHENA.MIT.EDU (Tim Lindholm)
Wed Sep 20 18:25:13 1995
Date: Wed, 20 Sep 1995 12:48:54 -0700
From: lindholm@scndprsn.Eng.Sun.COM (Tim Lindholm)
To: java-interest@java.Eng.Sun.COM, Steve_Yen.LOTUS@crd.lotus.com
> To: java-interest <java-interest@java>
> From: Steve Yen <Steve_Yen.LOTUS@crd.lotus.com>
> Date: 20 Sep 95 11:57:09 EDT
> Subject: GC and Class management
>
> I know java does garbage collection on instances of Object,
> but does java do garbage collection on instances of Class?
>
> I'm imagining a case where I've been surfing with HotJava
> for several hours, and the java interpreter gets chock full of
> old, no-longer-used applet classes from previous pages.
> Could be a memory resource hog? Or a feature? ;-)
Classes are not currently GC'ed. They should be, but for now
HotJava will retain them for the duration of its run. As applet
code is pretty compact this isn't an enormous problem, but does
need to be addressed in future implementations.
-- Tim
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com