This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Unloading classes
- From: Tom Tromey <tromey at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Anthony Green <green at redhat dot com>, java at gcc dot gnu dot org
- Date: 04 Nov 2002 09:43:09 -0700
- Subject: Re: Unloading classes
- References: <Pine.LNX.4.44.0211031954500.12871-100000@ops2.one-point.com>
- Reply-to: tromey at redhat dot com
>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:
Jeff> I'd seen the opposite, i.e. classes can be GC'ed prematurely:
Jeff> http://gcc.gnu.org/ml/java/2002-07/msg00043.html
I'd forgotten about this. It turns out I was running into a problem
that looks like this a couple weeks ago.
Jeff> Possibly the easiest thing is to not _Jv_RegisterClass
Jeff> interpreted classes at all. I hacked together the patch below
Jeff> some time ago, but hadn't gotten around to submitting it because
Jeff> I'm not convinced it doesn't break classloading in some subtle
Jeff> way.
I haven't read the patch very closely, but I think this approach is
the way to go. It solves the GC problem in a straightforward way.
Also it opens the door to merging ClassLoader with Classpath.
Tom