Don't DCHECK that the weak closure wasn't yet overapproximated
authorjochen <jochen@chromium.org>
Fri, 20 Mar 2015 10:17:31 +0000 (03:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 20 Mar 2015 10:17:37 +0000 (10:17 +0000)
Maybe it was overapproximated via the idle notification already, so just
don't retry in that case

BUG=chromium:469023
R=hpayer@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1025603003

Cr-Commit-Position: refs/heads/master@{#27335}

src/heap/heap.cc

index 1b0ab09..054ebce 100644 (file)
@@ -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");
+  }
 }