This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Array marking
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: Array marking
- From: Jeff Sturm <jsturm at sigma6 dot com>
- Date: Fri, 28 Apr 2000 20:28:11 -0400 (EDT)
(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