summaryrefslogtreecommitdiff
path: root/libjava/boehm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r--libjava/boehm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc
index 33800edb410..2ecad740d93 100644
--- a/libjava/boehm.cc
+++ b/libjava/boehm.cc
@@ -375,7 +375,7 @@ _Jv_GCSetInitialHeapSize (size_t size)
{
size_t current = GC_get_heap_size ();
if (size > current)
- GC_expand_hp (current - size);
+ GC_expand_hp (size - current);
}
void