This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Array marking
- To: jsturm at sigma6 dot com (Jeff Sturm)
- Subject: Re: Array marking
- From: Godmar Back <gback at cs dot utah dot edu>
- Date: Mon, 1 May 2000 16:02:51 -0600 (MDT)
- Cc: java-discuss at sourceware dot cygnus dot com
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
>