Bug 939499 - Pause barrier verification before changing mark stack size r=billm

This commit is contained in:
Jon Coppeard 2014-02-13 15:33:04 +00:00
parent 7a1c0e3e51
commit f188ffbe5e
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
verifyprebarriers();
gcparam('markStackLimit', 5);

View File

@ -2093,6 +2093,7 @@ void
js::SetMarkStackLimit(JSRuntime *rt, size_t limit)
{
JS_ASSERT(!rt->isHeapBusy());
AutoStopVerifyingBarriers pauseVerification(rt, false);
rt->gcMarker.setMaxCapacity(limit);
}