This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Array marking



 I also don't see how you'd avoid marking classes unless you store a
it in the object that says whether its class is collectable or not
and therefore must be marked or not.

	- Godmar

> 
> 
> (Resending mail... looks like ORBS finally caught up to my ISP :\)
> 
> Bryce McKinlay wrote:
> > But if we don't mark classes at all, how do we know when a classloader
> > becomes unreachable?
> 
> Good question.  I had only been considering the case where
> getClassLoader() == null.
> 
> It seems that classloaders are circularly referenced from their set of
> classes, and therefore they are collectable if and only if they, and
> each of their classes, are all unreachable.  So interpreted classes at
> least must be marked from their instances.  (I know you mentioned the
> possibility of unloading native classes too.  I'm frankly not sure how
> that could be done.)
> 
> --
> Jeff Sturm
> jsturm@sigma6.com
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]