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/10 16:29:56 UTC

svn commit: r564604 - /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp

Author: xli
Date: Fri Aug 10 07:29:55 2007
New Revision: 564604

URL: http://svn.apache.org/viewvc?view=rev&rev=564604
Log:
Fixed a minor collection bug that turns off mark-sweep for gen mode.

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?view=diff&rev=564604&r1=564603&r2=564604
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/gen/gen.cpp Fri Aug 10 07:29:55 2007
@@ -453,7 +453,7 @@
     mspace->last_alloced_size = GC_BLOCK_SIZE_BYTES * ( mspace_num_used_blocks_after_minor - mspace_num_used_blocks_before_minor );
 
     /*If the current minor collection failed, i.e. there happens a fallback, we should not do the minor sweep of LOS*/
-    if(gc->collect_result != FALSE)
+    if(gc->collect_result != FALSE && !gc_is_gen_mode())
       lspace_collection(gc->los);
 
     gc->mos->move_object = 1;