Bug 1218968 - Reduce running time of oomInArrayProtoTest.js r=lth
authorJon Coppeard <jcoppeard@mozilla.com>
Mon, 23 Nov 2015 10:52:17 +0000
changeset 273815 0a10dcc01c2e4a41e82197e13a5129eb65eeac6d
parent 273814 31dc40f11fbd0e21bf31c8e8869666a1fbae7d7d
child 273816 b3a2844b756962a24146baaa68161df6a3c4d27d
push id29715
push userkwierso@gmail.com
push dateTue, 24 Nov 2015 21:54:25 +0000
treeherdermozilla-central@d9243e369c22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1218968
milestone45.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 1218968 - Reduce running time of oomInArrayProtoTest.js r=lth
js/src/jit-test/tests/gc/oomInArrayProtoTest.js
--- a/js/src/jit-test/tests/gc/oomInArrayProtoTest.js
+++ b/js/src/jit-test/tests/gc/oomInArrayProtoTest.js
@@ -6,20 +6,18 @@ function arrayProtoOutOfRange() {
         return typeof obj[15];
     }
 
     function test() {
         var a = [1, 2];
         a.__proto__ = {15: 1337};
         var b = [1, 2, 3, 4];
 
-        for (var i = 0; i < 1000; i++) {
+        for (var i = 0; i < 200; i++) {
             var r = f(i % 2 ? a : b);
             assertEq(r, i % 2 ? "number" : "undefined");
         }
     }
 
     test();
-    test();
-    test();
 }
 
 oomTest(arrayProtoOutOfRange);