Bug 945285 - Don't verify post barriers if store buffer is disabled r=sfink

This commit is contained in:
Jon Coppeard 2013-12-13 09:32:19 +00:00
parent 7ac52d01ee
commit d68d5f0a87
2 changed files with 6 additions and 1 deletions

View File

@ -830,10 +830,11 @@ MaybeVerifyPreBarriers(JSRuntime *rt, bool always)
static void
MaybeVerifyPostBarriers(JSRuntime *rt, bool always)
{
#ifdef JSGC_GENERATIONAL
if (rt->gcZeal() != ZealVerifierPostValue)
return;
if (rt->mainThread.suppressGC)
if (rt->mainThread.suppressGC || !rt->gcStoreBuffer.isEnabled())
return;
if (VerifyPostTracer *trc = (VerifyPostTracer *)rt->gcVerifyPostData) {
@ -843,6 +844,7 @@ MaybeVerifyPostBarriers(JSRuntime *rt, bool always)
EndVerifyPostBarriers(rt);
}
StartVerifyPostBarriers(rt);
#endif
}
void

View File

@ -0,0 +1,3 @@
gczeal(11);
function callback(obj) {}
setObjectMetadataCallback(callback);