diff --git a/src/heap/heap.cc b/src/heap/heap.cc index 1b0ab092f0..054ebced2a 100644 --- a/src/heap/heap.cc +++ b/src/heap/heap.cc @@ -736,8 +736,9 @@ void Heap::HandleGCRequest() { return; } DCHECK(FLAG_overapproximate_weak_closure); - DCHECK(!incremental_marking()->weak_closure_was_overapproximated()); - OverApproximateWeakClosure("GC interrupt"); + if (!incremental_marking()->weak_closure_was_overapproximated()) { + OverApproximateWeakClosure("GC interrupt"); + } }