jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
authorDavid Daney <ddaney@avtrex.com>
Mon, 22 Oct 2007 21:24:35 +0000 (21:24 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Mon, 22 Oct 2007 21:24:35 +0000 (21:24 +0000)
* include/jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
* boehm.cc (_Jv_SetGCFreeSpaceDivisor): Define it.

From-SVN: r129560

libjava/ChangeLog
libjava/boehm.cc
libjava/include/jvm.h

index de3ce7202d27478479c2d885eaece3842b0aeba9..445999c4512315334411fe7eedb0bc9da5ec78ce 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-22  David Daney  <ddaney@avtrex.com>
+
+       * include/jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
+       * boehm.cc (_Jv_SetGCFreeSpaceDivisor): Define it.
+
 2007-10-18  David Daney  <ddaney@avtrex.com>
 
        * classpath/lib/gnu/java/locale/LocaleData.class: Regenerate
index 4a7fc4a82302ccc6ab90c9eae33618adfd39feb8..855d23cb024a83180e289c3a9e104a35b42be351 100644 (file)
@@ -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)
 {
index 8e60bb573c23b9a217747c12ea10dba52c776812..84847548f01b7ff71646f426a7e3d496aabcc971 100644 (file)
@@ -412,6 +412,10 @@ void _Jv_SetInitialHeapSize (const char *arg);
    _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 ();