diff options
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index b300c37c860..fb11a112873 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -393,6 +393,20 @@ _Jv_GCFreeMemory (void) } void +_Jv_GCSetInitialHeapSize (size_t size) +{ + size_t current = GC_get_heap_size (); + if (size > current) + GC_expand_hp (current - size); +} + +void +_Jv_GCSetMaximumHeapSize (size_t size) +{ + GC_set_max_heap_size ((GC_word) size); +} + +void _Jv_InitGC (void) { int proc; |