This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Controlling the garbage collector (GC) at RT?
- From: "Boehm, Hans" <hans dot boehm at hp dot com>
- To: "Martin Egholm Nielsen" <martin at egholm-nielsen dot dk>,<java at gcc dot gnu dot org>
- Date: Mon, 7 Feb 2005 15:25:46 -0800
- Subject: RE: Controlling the garbage collector (GC) at RT?
> -----Original Message-----
> From: Martin Egholm Nielsen
> But it would also be really nice if I could, somehow, control the
> heap-increase-size (factor). It seems to be 1.33 today:
>
> heap_last_increase_size *= 1.33;
> heap_size += heap_last_increase_size;
>
> I would like to specify an initial "heap_last_increase_size",
> and then
> an increase-factor of 1.0.
> That way, I wouldn't have to specify the "GC_..._HEAP_SIZE" that
> accurately (and possibly risk overshooting if too ambitious, and
> undershooting with several megs if too carefull)...
That's kind of already possible, but it's currently only build-time
configurable. (Look for MINHINCR and MAXHINCR.) I think there's no good
reason for that, since it's rarely accessed. (It's currently expressed
as a multiple of the minimum heap block size. That would need to be
fixed.) If someone wants to submit a patch ...
Hans