Heap fragmentation (Was: Debugging "Leaks" With Boehm-GC)

Martin Egholm Nielsen martin@egholm-nielsen.dk
Sun Jan 15 19:18:00 GMT 2006


>>> 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.

Now, what am I to do with that .i file after hacking it (assuming it's 
just a matter of adding "GC_set_free_space_divisor(X);")?

Should I gcj with "-v" and do the exact same operations?

Thanks so far,
  Martin



More information about the Java mailing list