Index: include/jvm.h =================================================================== --- include/jvm.h (revision 129428) +++ include/jvm.h (working copy) @@ -412,6 +412,10 @@ void _Jv_SetInitialHeapSize (const char _Jv_GCSetMaximumHeapSize. */ void _Jv_SetMaximumHeapSize (const char *arg); +/* External interface for setting the GC_free_space_divisor. Calls + GC_set_free_space_divisor and returns the old value. */ +int _Jv_SetGCFreeSpaceDivisor (int div); + /* Free the method cache, if one was allocated. This is only called during thread deregistration. */ void _Jv_FreeMethodCache (); Index: boehm.cc =================================================================== --- boehm.cc (revision 129428) +++ boehm.cc (working copy) @@ -465,6 +465,12 @@ _Jv_GCSetMaximumHeapSize (size_t size) GC_set_max_heap_size ((GC_word) size); } +int +_Jv_SetGCFreeSpaceDivisor (int div) +{ + return (int)GC_set_free_space_divisor ((GC_word)div); +} + void _Jv_DisableGC (void) {