This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]