Reviewers: danno,
Description:
Make recent regression test resilient against GC stress.
[email protected]
TEST=mjsunit/regress/regress-165637
Please review this at https://codereview.chromium.org/11824062/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M test/mjsunit/regress/regress-165637.js
Index: test/mjsunit/regress/regress-165637.js
diff --git a/test/mjsunit/regress/regress-165637.js
b/test/mjsunit/regress/regress-165637.js
index
84c9041216cb6045c036054b67e470c7615f5639..b83bdc2aa149f2aeb416b86192cffd0b0a068d08
100644
--- a/test/mjsunit/regress/regress-165637.js
+++ b/test/mjsunit/regress/regress-165637.js
@@ -45,6 +45,10 @@ function do_slices() {
return Date.now() - start;
}
+// Reset the GC interval to be off. Needed so that the runtime of this test
+// stays within bounds even if we run in GC stress mode.
+%SetFlags("--gc-interval=-1");
+
// Should never take more than 3 seconds (if the bug is fixed, the test
takes
// considerably less time than 3 seconds).
assertTrue(do_slices() < (3 * 1000));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev