[sgen] Properly update heap boundaries for fixed-heap mark&sweep.
authorMark Probst <mark.probst@gmail.com>
Wed, 25 Aug 2010 03:52:03 +0000 (05:52 +0200)
committerMark Probst <mark.probst@gmail.com>
Wed, 25 Aug 2010 04:06:12 +0000 (06:06 +0200)
We didn't update the heap boundaries correctly in the fixed-heap
mark&sweep collector, which could lead to pins being lost.

mono/metadata/sgen-marksweep.c

index d99018bfc7695cc9be7ae5051b3b34c6db78c8f7..b78b3222bbb022481c04cc8ace98934cec7668e2 100644 (file)
@@ -293,7 +293,7 @@ ms_get_empty_block (void)
 
        block->used = TRUE;
 
-       mono_sgen_update_heap_boundaries ((mword)block, (mword)block + MS_BLOCK_SIZE);
+       mono_sgen_update_heap_boundaries ((mword)block->block, (mword)block->block + MS_BLOCK_SIZE);
 
        return block;
 }