Bug 1464092 - Speed up some more oomTests that may be taking a long time r=jandem
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 25 May 2018 10:40:32 +0100
changeset 419857 107ae32fe44fd8d866cebdf598cdacdfe0779a2b
parent 419856 2836ce086f279d0050f581ab00dd55ced7a172ed
child 419858 d7c126843dc0b7cc7251bbf7c21c954d3f391c49
push id34052
push userccoroiu@mozilla.com
push dateFri, 25 May 2018 17:52:14 +0000
treeherdermozilla-central@94d7f0e1c4d0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1464092
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1464092 - Speed up some more oomTests that may be taking a long time r=jandem
js/src/jit-test/tests/coverage/bug1214548.js
js/src/jit-test/tests/debug/bug-1248162.js
js/src/jit-test/tests/debug/bug-1260725.js
js/src/jit-test/tests/debug/bug1251919.js
js/src/jit-test/tests/debug/bug1254123.js
js/src/jit-test/tests/debug/bug1254190.js
js/src/jit-test/tests/debug/bug1254578.js
js/src/jit-test/tests/debug/bug1264961.js
js/src/jit-test/tests/debug/bug1272908.js
js/src/jit-test/tests/gc/bug-1226896.js
js/src/jit-test/tests/gc/bug-1292564.js
js/src/jit-test/tests/gc/bug-1303015.js
js/src/jit-test/tests/wasm/regress/oom-eval.js
--- a/js/src/jit-test/tests/coverage/bug1214548.js
+++ b/js/src/jit-test/tests/coverage/bug1214548.js
@@ -1,10 +1,10 @@
 if (!('oomTest' in this))
     quit();
 
 oomTest(() => {
-  var g = newGlobal();
+  var g = newGlobal({sameZoneAs: this});
   g.eval("\
     function f(){}; \
     getLcovInfo(); \
   ");
 });
--- a/js/src/jit-test/tests/debug/bug-1248162.js
+++ b/js/src/jit-test/tests/debug/bug-1248162.js
@@ -5,10 +5,10 @@ if (typeof oomTest !== "function")
 
 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/Debugger-onNewGlobalObject-01.js
 for (var i = 0; i < 9; ++i) {
   var dbg = new Debugger;
   dbg.onNewGlobalObject = function() {};
 }
 // jsfunfuzz-generated
 oomTest(function() {
-  newGlobal();
+  newGlobal({sameZoneAs: this});
 })
--- a/js/src/jit-test/tests/debug/bug-1260725.js
+++ b/js/src/jit-test/tests/debug/bug-1260725.js
@@ -3,10 +3,10 @@
 if (!('oomTest' in this))
   throw new Error("out of memory");
 
 var dbg = new Debugger;
 dbg.onNewGlobalObject = function(global) {
   dbg.memory.takeCensus({});
 };
 oomTest(function() {
-  newGlobal({})
+  newGlobal({sameZoneAs: this})
 });
--- a/js/src/jit-test/tests/debug/bug1251919.js
+++ b/js/src/jit-test/tests/debug/bug1251919.js
@@ -4,10 +4,10 @@ if (!('oomTest' in this))
     throw new Error("out of memory");
 
 // jsfunfuzz-generated
 fullcompartmentchecks(true);
 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/bug-1248162.js
 var dbg = new Debugger;
 dbg.onNewGlobalObject = function() {};
 oomTest(function() {
-    newGlobal();
+    newGlobal({sameZoneAs: this});
 })
--- a/js/src/jit-test/tests/debug/bug1254123.js
+++ b/js/src/jit-test/tests/debug/bug1254123.js
@@ -7,11 +7,11 @@ evaluate(`
 function ERROR(msg) {
   throw new Error("boom");
 }
 for (var i = 0; i < 9; ++ i) {
   var dbg = new Debugger;
   dbg.onNewGlobalObject = ERROR;
 }
 oomTest(function() {
-  newGlobal();
+  newGlobal({sameZoneAs: this});
 })
 `);
--- a/js/src/jit-test/tests/debug/bug1254190.js
+++ b/js/src/jit-test/tests/debug/bug1254190.js
@@ -5,11 +5,11 @@ if (!('oomTest' in this))
 
 var g = newGlobal();
 var dbg = new Debugger(g);
 dbg.onNewScript = function (s) {
   log += dbg.findScripts({ source: s.source }).length;
 }
 log = "";
 oomTest(() => {
-    var static  = newGlobal();
+    var static  = newGlobal({sameZoneAs: this});
     g.eval("(function() {})()");
 });
--- a/js/src/jit-test/tests/debug/bug1254578.js
+++ b/js/src/jit-test/tests/debug/bug1254578.js
@@ -13,11 +13,10 @@ g.eval("(" + function() {
             debuggeeGlobal.log += s;
     };
 } + ")();");
 var dbg = new Debugger;
 dbg.onNewGlobalObject = function(global) {
     get.seen = true;
 };
 oomTest(function() {
-    newGlobal({
-    })
+    newGlobal({sameZoneAs: this})
 });
--- a/js/src/jit-test/tests/debug/bug1264961.js
+++ b/js/src/jit-test/tests/debug/bug1264961.js
@@ -3,17 +3,17 @@
 if (!('oomTest' in this))
   quit();
 
 loadFile(`
   var o = {}
   var global = this;
   var p = new Proxy(o, {
     "deleteProperty": function (await , key) {
-      var g = newGlobal();
+      var g = newGlobal({sameZoneAs: this});
       g.parent = global;
       g.eval("var dbg = new Debugger(parent); dbg.onEnterFrame = function(frame) {};");
     }
   })
   for (var i=0; i<100; i++);
   assertEq(delete p.foo, true);
 `);
 function loadFile(lfVarx) {
--- a/js/src/jit-test/tests/debug/bug1272908.js
+++ b/js/src/jit-test/tests/debug/bug1272908.js
@@ -9,11 +9,11 @@ g.eval("(" + function() {
 } + ")()");
 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/bug1254123.js
 function ERROR(msg) {
     throw new Error("boom");
 }
 var dbg = new Debugger;
 dbg.onNewGlobalObject = ERROR;
 oomTest(function() {
-    newGlobal();
+    newGlobal({sameZoneAs: this});
 })
 
--- a/js/src/jit-test/tests/gc/bug-1226896.js
+++ b/js/src/jit-test/tests/gc/bug-1226896.js
@@ -1,9 +1,9 @@
 // |jit-test| --ion-pgo=on
 
 if (!('oomTest' in this))
    quit();
 
 oomTest(() => {
-    var g = newGlobal();
+    var g = newGlobal({sameZoneAs: this});
     g.eval("(function() {})()");
 });
--- a/js/src/jit-test/tests/gc/bug-1292564.js
+++ b/js/src/jit-test/tests/gc/bug-1292564.js
@@ -1,12 +1,12 @@
 // |jit-test| allow-oom
 
 if (!('oomTest' in this))
     quit();
 
 oomTest(() => {
-    let global = newGlobal();
+    let global = newGlobal({sameZoneAs: this});
     Debugger(global).onDebuggerStatement = function (frame) {
         frame.eval("f")
     }
     global.eval("debugger")
 }, false);
--- a/js/src/jit-test/tests/gc/bug-1303015.js
+++ b/js/src/jit-test/tests/gc/bug-1303015.js
@@ -1,13 +1,13 @@
 if (!('oomTest' in this))
     quit();
 
 var x = ``.split();
 oomTest(function() {
-    var lfGlobal = newGlobal();
+    var lfGlobal = newGlobal({sameZoneAs: this});
     for (lfLocal in this) {
         if (!(lfLocal in lfGlobal)) {
                 lfGlobal[lfLocal] = this[lfLocal];
         }
     }
 });
 
--- a/js/src/jit-test/tests/wasm/regress/oom-eval.js
+++ b/js/src/jit-test/tests/wasm/regress/oom-eval.js
@@ -1,12 +1,12 @@
 // |jit-test| slow; allow-oom
 
 if (typeof oomTest !== 'function' || !wasmIsSupported()) {
     print('Missing oomTest or wasm support in wasm/regress/oom-eval');
     quit();
 }
 
 function foo() {
-  var g = newGlobal();
+  var g = newGlobal({sameZoneAs: this});
   g.eval(`o = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func) (export "" 0))')));`);
 }
 oomTest(foo);