Heap fragmentation (Was: Debugging "Leaks" With Boehm-GC)
David Daney
ddaney@avtrex.com
Sun Jan 15 12:18:00 GMT 2006
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
More information about the Java
mailing list