Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/heap/incremental-marking.cc

Issue 1844413002: Use EmbedderHeapTracer instead of object grouping when trace_embedder_heap flag is set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove flag, presence of heap tracer is enough Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/incremental-marking.h" 5 #include "src/heap/incremental-marking.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/heap/gc-idle-time-handler.h" 10 #include "src/heap/gc-idle-time-handler.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 heap_->mark_compact_collector()->marking_deque()->top(); 719 heap_->mark_compact_collector()->marking_deque()->top();
720 720
721 // After finishing incremental marking, we try to discover all unmarked 721 // After finishing incremental marking, we try to discover all unmarked
722 // objects to reduce the marking load in the final pause. 722 // objects to reduce the marking load in the final pause.
723 // 1) We scan and mark the roots again to find all changes to the root set. 723 // 1) We scan and mark the roots again to find all changes to the root set.
724 // 2) We mark the object groups. 724 // 2) We mark the object groups.
725 // 3) Age and retain maps embedded in optimized code. 725 // 3) Age and retain maps embedded in optimized code.
726 // 4) Remove weak cell with live values from the list of weak cells, they 726 // 4) Remove weak cell with live values from the list of weak cells, they
727 // do not need processing during GC. 727 // do not need processing during GC.
728 MarkRoots(); 728 MarkRoots();
729 MarkObjectGroups(); 729 if (!heap_->UsingEmbedderHeapTracer()) {
730 MarkObjectGroups();
Hannes Payer (out of office) 2016/04/07 20:38:31 Can you check FLAG_trace_object_groups here and DC
Marcel Hlopko 2016/04/08 08:08:10 Done.
731 }
730 if (incremental_marking_finalization_rounds_ == 0) { 732 if (incremental_marking_finalization_rounds_ == 0) {
731 // Map retaining is needed for perfromance, not correctness, 733 // Map retaining is needed for perfromance, not correctness,
732 // so we can do it only once at the beginning of the finalization. 734 // so we can do it only once at the beginning of the finalization.
733 RetainMaps(); 735 RetainMaps();
734 } 736 }
735 ProcessWeakCells(); 737 ProcessWeakCells();
736 738
737 int marking_progress = 739 int marking_progress =
738 abs(old_marking_deque_top - 740 abs(old_marking_deque_top -
739 heap_->mark_compact_collector()->marking_deque()->top()); 741 heap_->mark_compact_collector()->marking_deque()->top());
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1225 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1224 idle_marking_delay_counter_++; 1226 idle_marking_delay_counter_++;
1225 } 1227 }
1226 1228
1227 1229
1228 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1230 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1229 idle_marking_delay_counter_ = 0; 1231 idle_marking_delay_counter_ = 0;
1230 } 1232 }
1231 } // namespace internal 1233 } // namespace internal
1232 } // namespace v8 1234 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698