Patch: Add new _Jv_SetGCFreeSpaceDivisor method to libgcj.
David Daney
ddaney@avtrex.com
Sun Oct 21 05:58:00 GMT 2007
As I mentioned previously, GC_free_space_divisor is no longer exported
from libgcj.so.
Access to this GC tuning parameter is needed on systems where the
maximum heap size is set. If GC_free_space_divisor is not set to a
value larger than its default value of three, the heap can easily get
fragmented in such a manner that OutOfMemoryErrors are thrown even
though there is plenty of free memory.
Since the loss of the ability to adjust GC_free_space_divisor is a
regression, this should be committed even though we are in stage three.
Tested on x86_64-pc-linux-gnu in libjava with no regressions.
OK to commit?
2007-10-20 David Daney <ddaney@avtrex.com>
* include/jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
* boehm.cc (_Jv_SetGCFreeSpaceDivisor): Define it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freespacedivisor.diff
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20071021/c19b9f73/attachment.bin>
More information about the Java-patches
mailing list