From f702543b9c81f6fa5f07a3bdb464d244a1e6dec6 Mon Sep 17 00:00:00 2001 From: ulan Date: Wed, 16 Nov 2016 05:52:47 -0800 Subject: [PATCH] [heap] Fix new space size computation in gc tracer. BUG= Review-Url: https://codereview.chromium.org/2507013002 Cr-Commit-Position: refs/heads/master@{#41035} --- src/heap/gc-tracer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc index dcd319fdae..f7c67ace2b 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;