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] | |
Auch... I certainly don't want that, no. And I do have the specific situation with only a limited maximum heap.The GC sets up memory pools of different sized objects. If you have the divisor set too low in conjunction with a limited maximum heap size you can run into a situation where there are many of these pools that have some free space in them, but there is no memory left to expand the pool of a pool for a given size object. The result is an OutOfMemoryError even though the total space taken up by reachable objects is significantly smaller than the total available memory.And in relation to that thread, what is the effect of adjusting GC_free_space_divisor? (Maybe I should take that back in the old thread)
heap_last_increase_size *= 1.33; heap_size += heap_last_increase_size;
With the correct tool yes :-)I think it would be an excellent idea. I have code that does a heap dump that I would be good to put in the interface as well. Given the heap dump and a post processing program we generate things like the number and type of each reachable object as well as the value of each String. Many cool things are possible.Am I the only one that think a GCJ interface for controlling the GC would be neat?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |