Array marking
Godmar Back
gback@cs.utah.edu
Mon May 1 15:03:00 GMT 2000
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
>
More information about the Java
mailing list