Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 490de3579cc110f9e3f73280f1d94727827edcf6..05ddf527152d90fa36a0a5c79a73822a6611cb82 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -800,6 +800,7 @@ void MarkCompactCollector::Prepare() { |
AbortCompaction(); |
if (heap_->UsingEmbedderHeapTracer()) { |
heap_->embedder_heap_tracer()->AbortTracing(); |
+ heap_->clear_wrappers_to_trace(); |
} |
marking_deque()->Clear(); |
was_marked_incrementally_ = false; |