Bug 1146696 - Fix testcase not to over-recurse r=me on a CLOSED TREE
☠☠ backed out by aef75ff8a911 ☠ ☠
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 27 Mar 2015 13:55:07 +0000
changeset 236054 49aa36d0b28abd98101719a75e6b70c0daf4782f
parent 236053 2713e4e8e549474c06b6645fc0722ec1fd72c5b4
child 236055 aef75ff8a91166c258a166384275ca8697707fd5
push id57586
push userjcoppeard@mozilla.com
push dateFri, 27 Mar 2015 13:55:36 +0000
treeherdermozilla-inbound@49aa36d0b28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1146696
milestone39.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 1146696 - Fix testcase not to over-recurse r=me on a CLOSED TREE
js/src/jit-test/tests/gc/bug-1146696.js
--- a/js/src/jit-test/tests/gc/bug-1146696.js
+++ b/js/src/jit-test/tests/gc/bug-1146696.js
@@ -1,18 +1,19 @@
-// |jit-test| error: out of memory
 dbg1 = new Debugger();
 root2 = newGlobal();
 dbg1.memory.onGarbageCollection = function(){}
 dbg1.addDebuggee(root2);
 for (var j = 0; j < 9999; ++j) {
     try {
         a
     } catch (e) {}
 }
 gcparam("maxBytes", gcparam("gcBytes") + 1);
-g();
-function g() {
+function g(i) {
+    if (i == 0)
+        return;
     var x = "";
     function f() {}
     eval('');
-    g();
+    g(i - 1);
 }
+g(8000);