patch for gc of interned String

Per Bothner per@bothner.com
Sat Mar 17 11:43:00 GMT 2001


Tom Tromey <tromey@redhat.com> writes:

> I have a patch to fix this problem.  It has been pending for a while.
> You can see it on java-patches from a month or two ago.
> 
> I wasn't going to put it on the 3.0 branch but now I think maybe I
> should.

This problem needs to be fixed in gcc 3.0. In the worst case, we can
use the stop-gap of not using _Jv_AllocBytes to allocate the
hash-table, but instead using a function allocates scanned memory, but
that means intern'd strings are never reclaimed.  However, that is
better than the current situation.

> I haven't checked it in on the trunk because, even though I
> tested the patch way back when, I want to be certain things compile
> with it, and I haven't been able to build the trunk for a while.

Well, I think the situation is improved now, at least on Linux.
I'm able to build, and almost able to compile Kawa.  (Still a
problem when compiling class files.)  I do have a couple more
patches I hope to check in today.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/



More information about the Java-patches mailing list