From a8a418330d81c17da793693cbafe5d8684f5d743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Fri, 13 Jan 2012 11:11:03 -0500 Subject: [PATCH] Bug 717908 - disable unreliable test. r=igor. Since we use a conservative gc, this test can fail depending on the memory layout. --HG-- extra : rebase_source : dc0f35343a4aa2b911cb582c093a17a50289d299 --- js/src/jit-test/tests/basic/testBug597736.js | 32 -------------------- 1 file changed, 32 deletions(-) delete mode 100644 js/src/jit-test/tests/basic/testBug597736.js diff --git a/js/src/jit-test/tests/basic/testBug597736.js b/js/src/jit-test/tests/basic/testBug597736.js deleted file mode 100644 index ded33842776..00000000000 --- a/js/src/jit-test/tests/basic/testBug597736.js +++ /dev/null @@ -1,32 +0,0 @@ -function leak_test() { - // Create a reference loop function->script->traceFragment->object->function - // that GC must be able to break. To embedd object into the fragment the - // code use prototype chain of depth 2 which caches obj.__proto__.__proto__ - // into the fragment. - - // To make sure that we have no references to the function f after this - // function returns due via the conservative scan of the native stack we - // loop here multiple times overwriting the stack and registers with new garabge. - for (var j = 0; j != 8; ++j) { - var f = Function("a", "var s = 0; for (var i = 0; i != 100; ++i) s += a.b; return s;"); - var c = {b: 1, f: f, leakDetection: makeFinalizeObserver()}; - f({ __proto__: { __proto__: c}}); - f = c = a = null; - gc(); - } -} - -function test() -{ - if (typeof finalizeCount != "function") - return; - - var base = finalizeCount(); - leak_test(); - gc(); - gc(); - var n = finalizeCount(); - assertEq(base + 4 < finalizeCount(), true, "Some finalizations must happen"); -} - -test();