Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 104175ddacbd172724fc30bcb676be8375b2bd06..064e3f36919ff51045b630367d463a9dfc9f5a86 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -5552,8 +5552,7 @@ void Heap::NotifyDeserializationComplete() { |
} |
void Heap::SetEmbedderHeapTracer(EmbedderHeapTracer* tracer) { |
- DCHECK_NOT_NULL(tracer); |
- CHECK_NULL(embedder_heap_tracer_); |
+ DCHECK_EQ(gc_state_, HeapState::NOT_IN_GC); |
embedder_heap_tracer_ = tracer; |
} |