diff options
Diffstat (limited to 'src/qml/memory')
-rw-r--r-- | src/qml/memory/qv4mm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp index b9e6327ea2..acaaa3b920 100644 --- a/src/qml/memory/qv4mm.cpp +++ b/src/qml/memory/qv4mm.cpp @@ -1045,7 +1045,7 @@ void MemoryManager::sweep(bool lastSweep, ClassDestroyStatsCallback classCountPt bool MemoryManager::shouldRunGC() const { - size_t total = blockAllocator.totalSlots(); + size_t total = blockAllocator.totalSlots() + icAllocator.totalSlots(); if (total > MinSlotsGCLimit && usedSlotsAfterLastFullSweep * GCOverallocation < total * 100) return true; return false; @@ -1181,7 +1181,7 @@ void MemoryManager::runGC() == blockAllocator.usedMem() + dumpBins(&blockAllocator, false)); } - usedSlotsAfterLastFullSweep = blockAllocator.usedSlotsAfterLastSweep; + usedSlotsAfterLastFullSweep = blockAllocator.usedSlotsAfterLastSweep + icAllocator.usedSlotsAfterLastSweep; // reset all black bits blockAllocator.resetBlackBits(); |