This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Heap fragmentation (Was: Debugging "Leaks" With Boehm-GC)
- From: David Daney <ddaney at avtrex dot com>
- To: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 14 Jan 2006 16:46:36 -0800
- Subject: Re: Heap fragmentation (Was: Debugging "Leaks" With Boehm-GC)
- References: <4380D2CC.30109@voxware.com> <4380FBCA.2040402@avtrex.com> <dqadlq$4di$1@sea.gmane.org> <43C9611F.5010509@avtrex.com> <dqbpjs$9o7$1@sea.gmane.org>
Martin Egholm Nielsen wrote:
We set GC_free_space_divisor before calling JvRunMain. I don't know
what happens if you call it after the runtime is already started.
But where is it configured? I will look for it in the morrow - if it's a
matter of searching for "GC_set_free_space_divisor" in the libjava
folder, I'm on it ;-)
We basically do:
gcj -save-temps --main=????? .....
Then take the .i file created to call your main and modify it so that
you set GC_free_space_divisor before the call to JvRunMain.
There are probably other ways to set the divisor, but we do several
other things there as well, so it was an easy matter to set the divisor
there as well.
Probably there should be a way to set the divisor with an environment
variable or such. Patches to do that would probably be accepted.
David Daney