Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 41e8d03147f8f230e7af406493f9b2c3c1be51d8..427185a5c85fcae2a65df85b3b3db654150cb6de 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -806,8 +806,6 @@ void MarkCompactCollector::Prepare() { |
heap_->local_embedder_heap_tracer()->TracePrologue(); |
} |
- heap_->local_embedder_heap_tracer()->EnterFinalPause(); |
- |
// Don't start compaction if we are in the middle of incremental |
// marking cycle. We did not collect any slots. |
if (!FLAG_never_compact && !was_marked_incrementally_) { |
@@ -2440,6 +2438,8 @@ void MarkCompactCollector::MarkLiveObjects() { |
marking_deque()->StartUsing(); |
+ heap_->local_embedder_heap_tracer()->EnterFinalPause(); |
+ |
{ |
TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_MARK_PREPARE_CODE_FLUSH); |
PrepareForCodeFlushing(); |