Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 583b2ca5124982cda6302c4b6b62213b34c2752a..0ac23d279db6d5c13e3d9b0b67206cdd7f983ce0 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -448,6 +448,7 @@ MemoryChunk* MemoryChunk::Initialize(Heap* heap, |
chunk->slots_buffer_ = NULL; |
chunk->skip_list_ = NULL; |
chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; |
+ chunk->progress_bar_ = 0; |
chunk->high_water_mark_ = static_cast<int>(area_start - base); |
chunk->ResetLiveBytes(); |
Bitmap::Clear(chunk); |
@@ -2784,7 +2785,8 @@ void LargeObjectSpace::FreeUnmarkedObjects() { |
MarkBit mark_bit = Marking::MarkBitFrom(object); |
if (mark_bit.Get()) { |
mark_bit.Clear(); |
- MemoryChunk::IncrementLiveBytesFromGC(object->address(), -object->Size()); |
+ Page::FromAddress(object->address())->ResetProgressBar(); |
+ Page::FromAddress(object->address())->ResetLiveBytes(); |
previous = current; |
current = current->next_page(); |
} else { |