[kaffe] class gc and static methods

Timothy Stack stack at cs.utah.edu
Fri Nov 22 17:06:48 PST 2002

On Friday, November 22, 2002, at 05:19  PM, Timothy Stack wrote:

> hi,
> So, i stumbled across an odd little bug and was looking for someone 
> else
> to confirm my suspicions.  The problem has to do with class gc and 
> static
> methods.  Basically, i'm thinking that a class could be garbage 
> collected
> while a thread is still executing a static method in that class.  This
> could happen because, as far as i know, there is no reference to the 
> class
> on the stack while the thread is executing a static method.  Perhaps 
> I'm
> missing something...

doh, I'll answer my own question.  The class containing the call to the 
method has a reference in its constant pool, duh!  Or its reflection 
and its already on the stack.

> thanks,
> tim stack


More information about the kaffe mailing list