mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 908696 - GenerationalGC: Disable post barrier verification when disabling GGC r=terrence
This commit is contained in:
parent
86b679f348
commit
dbee0b8d85
@ -123,7 +123,7 @@ class AutoStopVerifyingBarriers
|
||||
: runtime(rt)
|
||||
{
|
||||
restartPreVerifier = !isShutdown && rt->gcVerifyPreData;
|
||||
restartPostVerifier = !isShutdown && rt->gcVerifyPostData;
|
||||
restartPostVerifier = !isShutdown && rt->gcVerifyPostData && rt->gcGenerationalEnabled;
|
||||
if (rt->gcVerifyPreData)
|
||||
EndVerifyPreBarriers(rt);
|
||||
if (rt->gcVerifyPostData)
|
||||
|
@ -547,13 +547,13 @@ js::Nursery::collect(JSRuntime *rt, JS::gcreason::Reason reason)
|
||||
if (!isEnabled())
|
||||
return;
|
||||
|
||||
AutoStopVerifyingBarriers av(rt, false);
|
||||
|
||||
if (position() == start())
|
||||
return;
|
||||
|
||||
rt->gcHelperThread.waitBackgroundSweepEnd();
|
||||
|
||||
AutoStopVerifyingBarriers av(rt, false);
|
||||
|
||||
/* Move objects pointed to by roots from the nursery to the major heap. */
|
||||
MinorCollectionTracer trc(rt, this);
|
||||
MarkRuntime(&trc);
|
||||
|
Loading…
Reference in New Issue
Block a user