aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2007-10-22 21:24:35 +0000
committerDavid Daney <daney@gcc.gnu.org>2007-10-22 21:24:35 +0000
commit61c9bbb782d2542c93e5675e113177e6253f4dd7 (patch)
tree634bdaceaa625e1babde6a5219d484ff24fad2a6
parent0c71b4541aaae42adbf2a9d01a54109cbec454ff (diff)
downloadgcc-61c9bbb782d2542c93e5675e113177e6253f4dd7.zip
gcc-61c9bbb782d2542c93e5675e113177e6253f4dd7.tar.gz
gcc-61c9bbb782d2542c93e5675e113177e6253f4dd7.tar.bz2
jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
* include/jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function. * boehm.cc (_Jv_SetGCFreeSpaceDivisor): Define it. From-SVN: r129560
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/boehm.cc6
-rw-r--r--libjava/include/jvm.h4
3 files changed, 15 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index de3ce72..445999c 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/boehm.cc b/libjava/boehm.cc
index 4a7fc4a..855d23c 100644
--- a/libjava/boehm.cc
+++ b/libjava/boehm.cc
@@ -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)
{
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 8e60bb5..8484754 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -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 ();