mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1099152 - Call gcSlice() or gc() depending on whether we want a incemental GC or not r=terrence
This commit is contained in:
parent
069f4c9391
commit
6ced129b68
@ -3324,7 +3324,7 @@ GCRuntime::maybePeriodicFullGC()
|
||||
*/
|
||||
#ifndef JS_MORE_DETERMINISTIC
|
||||
int64_t now = PRMJ_Now();
|
||||
if (nextFullGCTime && nextFullGCTime <= now) {
|
||||
if (nextFullGCTime && nextFullGCTime <= now && !isIncrementalGCInProgress()) {
|
||||
if (chunkAllocationSinceLastGC ||
|
||||
numArenasFreeCommitted > decommitThreshold)
|
||||
{
|
||||
@ -6362,7 +6362,7 @@ GCRuntime::notifyDidPaint()
|
||||
|
||||
if (zealMode == ZealFrameGCValue) {
|
||||
JS::PrepareForFullGC(rt);
|
||||
gcSlice(GC_NORMAL, JS::gcreason::REFRESH_FRAME);
|
||||
gc(GC_NORMAL, JS::gcreason::REFRESH_FRAME);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user