mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 945285 - Don't verify post barriers if store buffer is disabled r=sfink
This commit is contained in:
parent
7ac52d01ee
commit
d68d5f0a87
@ -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
|
||||
|
3
js/src/jit-test/tests/gc/bug-945285.js
Normal file
3
js/src/jit-test/tests/gc/bug-945285.js
Normal file
@ -0,0 +1,3 @@
|
||||
gczeal(11);
|
||||
function callback(obj) {}
|
||||
setObjectMetadataCallback(callback);
|
Loading…
Reference in New Issue
Block a user