| Index: src/heap/incremental-marking.cc
|
| diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
|
| index e49b1f1ec304640041e5a4dfa74042f9c59087f2..799f26176188e0c411f794975d4de371a710b990 100644
|
| --- a/src/heap/incremental-marking.cc
|
| +++ b/src/heap/incremental-marking.cc
|
| @@ -735,7 +735,9 @@ void IncrementalMarking::FinalizeIncrementally() {
|
| // 4) Remove weak cell with live values from the list of weak cells, they
|
| // do not need processing during GC.
|
| MarkRoots();
|
| - MarkObjectGroups();
|
| + if (!heap_->mark_compact_collector()->UsingEmbedderHeapTracer()) {
|
| + MarkObjectGroups();
|
| + }
|
| if (incremental_marking_finalization_rounds_ == 0) {
|
| // Map retaining is needed for perfromance, not correctness,
|
| // so we can do it only once at the beginning of the finalization.
|
|
|