Bug 1264420 - Speed up test bug-1259306.js which sometimes times out. r=terrence, a=test-only
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 27 Apr 2016 10:41:05 +0100
changeset 333229 2fca5ba979abd54bf6675f62eb61b3a3caff6e48
parent 333228 d992dde457ca958041d6e10325dc15fa0edc2a41
child 333230 c2324a8ecaaea61e61c79d1823433ef3a0e53ee9
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence, test-only
bugs1264420, 1259306
milestone48.0a2
Bug 1264420 - Speed up test bug-1259306.js which sometimes times out. r=terrence, a=test-only
js/src/jit-test/tests/gc/bug-1259306.js
--- a/js/src/jit-test/tests/gc/bug-1259306.js
+++ b/js/src/jit-test/tests/gc/bug-1259306.js
@@ -1,15 +1,19 @@
 if (!('oomTest' in this))
     quit();
 
+let runCount = 0;
 oomTest(() => {
-    var lfGlobal = newGlobal();
-    var lfVarx = `
-        gczeal(8, 1);
-        try {
-            (5).replace(r, () => {});
-        } catch (x) {}
-        gczeal(0);
-    `;
-    lfGlobal.offThreadCompileScript(lfVarx);
-    lfGlobal.runOffThreadScript();
+    if (runCount < 5) {
+        let lfGlobal = newGlobal();
+        var lfVarx = `
+            gczeal(8, 1);
+            try {
+                (5).replace(r, () => {});
+            } catch (x) {}
+            gczeal(0);
+        `;
+        lfGlobal.offThreadCompileScript(lfVarx);
+        lfGlobal.runOffThreadScript();
+        runCount++;
+    }
 });