aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4mm.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2024-04-23 17:55:21 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2024-04-25 00:04:19 +0200
commitfa69a45b386b3091347ee73cb5d8310ed5fd3ed2 (patch)
tree4142ab3946087d25ede055f80b74ba12b949358e /src/qml/memory/qv4mm.cpp
parent4b4bca359b129c52acda31d2575bbe909a30c70f (diff)
gc: Fix wasDrainNecessary condition
We want to drain when we potentially don't have enough space, not when there's plenty of space. Change-Id: I939b3c69764b8b466fa045d0c9ba212722de1329 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/memory/qv4mm.cpp')
-rw-r--r--src/qml/memory/qv4mm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp
index 61dd59de23..f1910a4a56 100644
--- a/src/qml/memory/qv4mm.cpp
+++ b/src/qml/memory/qv4mm.cpp
@@ -707,7 +707,7 @@ static constexpr int markLoopIterationCount = 1024;
bool wasDrainNecessary(MarkStack *ms, QDeadlineTimer deadline)
{
- if (ms->remainingBeforeSoftLimit() < markLoopIterationCount)
+ if (ms->remainingBeforeSoftLimit() > markLoopIterationCount)
return false;
// drain
ms->drain(deadline);