Reviewers: jochen,

Description:
Fix cluster-fuzz regression with Workers on mips.debug

BUG=chromium:503698
[email protected]
LOG=n

Please review this at https://codereview.chromium.org/1208573003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+6, -6 lines):
  M src/d8.cc
  A + test/mjsunit/regress/regress-crbug-503698.js


Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 333f7e440274b2334ace286e7be5e46064fa3959..09653597ded2bea453c81bd464034951339ecefc 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1725,8 +1725,8 @@ void Worker::ExecuteInThread() {
         }
       }
     }
+    Shell::CollectGarbage(isolate);
   }
-  Shell::CollectGarbage(isolate);
   isolate->Dispose();
 }

Index: test/mjsunit/regress/regress-crbug-503698.js
diff --git a/test/mjsunit/compiler/regress-416359.js b/test/mjsunit/regress/regress-crbug-503698.js
similarity index 61%
copy from test/mjsunit/compiler/regress-416359.js
copy to test/mjsunit/regress/regress-crbug-503698.js
index 18cdc5e72800ab16c49ea2f2091b88ba1c873248..274eb5a99e9bc392107d933400f1ff2a3aab0e13 100644
--- a/test/mjsunit/compiler/regress-416359.js
+++ b/test/mjsunit/regress/regress-crbug-503698.js
@@ -2,9 +2,9 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-"use strict"
-function f() {
-  for (x in {a:0});
-}
+// Flags: --invoke-weak-callbacks

-assertThrows(f);
+if (this.Worker) {
+  function __f_1() {}
+  var __v_6 = new Worker(__f_1);
+}


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to