[Gc] GC Warning: Repeated allocation of very large block

Andrew Haley aph at redhat.com
Tue Oct 31 03:18:06 PST 2006

Bruce Hoult writes:
 > On 10/31/06, Andrew Haley <aph at redhat.com> wrote:
 > > Sure, but I didn't write the application, and the garbage
 > > collector gives me no way to know what the cause of the problem
 > > might be.  All that users of gcj know is that when run on other
 > > people's Java systems they don't get this message.  They think
 > > it's a bug in gcj.  And hey, that's how it looks to me too.
 > There is nothing that says you have to allocate a large Java array as
 > a single GC object.

I'd have to replace all array accesses

   a[i]   -->   mem (a + i*N)

with something like

   a[i]   -->

      tmp1 = i % slice
      tmp2 = i / slice
      mem (mem (a + tmp2) + tmp1*N)

Quel damage...


More information about the Gc mailing list