Always run the second pass of the phantom callbacks synchronously if --predictable...
authorepertoso <epertoso@chromium.org>
Tue, 21 Jul 2015 10:52:43 +0000 (03:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 10:53:00 +0000 (10:53 +0000)
R=jochen@chromium.org

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

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

src/global-handles.cc

index ab48997..444614c 100644 (file)
@@ -840,7 +840,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks(
     }
   }
   if (pending_phantom_callbacks_.length() > 0) {
-    if (synchronous_second_pass) {
+    if (FLAG_optimize_for_size || FLAG_predictable || synchronous_second_pass) {
       InvokeSecondPassPhantomCallbacks(&pending_phantom_callbacks_, isolate());
     } else {
       auto task = new PendingPhantomCallbacksSecondPassTask(