Bug 1097871 - Fix gc test that doesn't account for the JS_GC_ZEAL env var. (r=terrence)
authorShu-yu Guo <shu@rfrn.org>
Thu, 13 Nov 2014 14:39:39 -0800
changeset 215645 9832aa5cb89bbb125e77557690f3213aac67a6c1
parent 215644 5922f13f84397b5a8bc39254ff8506796e37571a
child 215646 2dbd7a8b984a6907ea1248c6c8d9d50c74054619
push id51810
push usershu@rfrn.org
push dateThu, 13 Nov 2014 22:39:12 +0000
treeherdermozilla-inbound@d65f01b9e6c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs1097871
milestone36.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 1097871 - Fix gc test that doesn't account for the JS_GC_ZEAL env var. (r=terrence)
js/src/jit-test/tests/gc/incremental-state.js
--- a/js/src/jit-test/tests/gc/incremental-state.js
+++ b/js/src/jit-test/tests/gc/incremental-state.js
@@ -12,16 +12,17 @@ if ("gcstate" in this) {
     /* Incremental GC in one slice. */
     gcslice(1000000);
     assertEq(gcstate(), "none");
 
     /* 
      * Incremental GC in multiple slices: if marking takes more than one slice,
      * we yield before we start sweeping.
      */
+    gczeal(0);
     gcslice(1);
     assertEq(gcstate(), "mark");
     gcslice(1000000);
     assertEq(gcstate(), "mark");
     gcslice(1000000);
     assertEq(gcstate(), "none");
 
     /* Zeal mode 8: Incremental GC in two slices: 1) mark roots 2) finish collection. */