Patch: Add methods to GCInfo to allow GC_free_space_divisor to be manipulated.
David Daney
ddaney@avtrex.com
Thu Oct 18 19:31:00 GMT 2007
Ever since the GC's internal symbols quit being exported by libgcj.so,
it has been impossible to change the GC_free_space_divisor. We need to
be able to tune this value in restricted memory environments to prevent
OutOfMemoryErrors.
This patch adds a couple of methods to the new gnu.gcj.util.GCInfo class
that allow the GC_free_space_divisor parameter to be tuned.
Tested on x86_64-pc-linux-gnu.
OK to commit?
2007-10-18 David Daney <ddaney@avtrex.com>
* gnu/gcj/util/GCInfo.java (checkPermission): Renamed to ...
(checkDumpPermission): ... this and updated references throughout.
(checkParametersPermission, getGCFreeSpaceDivisor,
setGCFreeSpaceDivisor): New methods.
(getGCFreeSpaceDivisor0, setGCFreeSpaceDivisor0): Declare.
* gnu/gcj/util/natGCInfo.cc: Move #includes outside of ifdef block.
(getGCFreeSpaceDivisor0, setGCFreeSpaceDivisor0): New methods.
* gnu/gcj/util/GCInfo.h: Regenerate.
* classpath/lib/gnu/gcj/util/GCInfo.class: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcinfo.patch
Type: text/x-patch
Size: 3912 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20071018/757d4faa/attachment.bin>
More information about the Java-patches
mailing list