Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index dcd319fdaea2a7a91977fe08eec74ea660e87e88..f7c67ace2b65f48f920f2fee6eddcf5bd3b58300 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -174,8 +174,7 @@ void GCTracer::Start(GarbageCollector collector, |
current_.start_object_size = heap_->SizeOfObjects(); |
current_.start_memory_size = heap_->memory_allocator()->Size(); |
current_.start_holes_size = CountTotalHolesSize(heap_); |
- current_.new_space_object_size = |
- heap_->new_space()->top() - heap_->new_space()->bottom(); |
+ current_.new_space_object_size = heap_->new_space()->Size(); |
current_.incremental_marking_bytes = 0; |
current_.incremental_marking_duration = 0; |