You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by xl...@apache.org on 2007/08/27 15:30:00 UTC
svn commit: r570106 - /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp
Author: xli
Date: Mon Aug 27 06:30:00 2007
New Revision: 570106
URL: http://svn.apache.org/viewvc?rev=570106&view=rev
Log:
fixed a bug that happens when -Xmx specifies a large mem but can't be committed by system.
Modified:
harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp
Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp?rev=570106&r1=570105&r2=570106&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp Mon Aug 27 06:30:00 2007
@@ -210,6 +210,9 @@
gc_gen->blocks = (Block*)reserved_base;
gc_gen->force_major_collect = FALSE;
gc_gen->force_gen_mode = FALSE;
+
+ max_heap_size_bytes = max_heap_size;
+ min_heap_size_bytes = min_heap_size;
gc_los_initialize(gc_gen, reserved_base, los_size);
gc_mos_initialize(gc_gen, (void*)((POINTER_SIZE_INT)reserved_base + los_size), mos_reserve_size, mos_commit_size);