aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4mm_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2024-03-18 14:28:33 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2024-03-19 13:47:24 +0100
commit0709d83dc65b49eadec7433bd9b3518b6473c6e8 (patch)
tree78ed542b54a8fa43ce211fb39013cfad87fa4696 /src/qml/memory/qv4mm_p.h
parentfb0ee24b9f9268b4cb76be0860841f3f6ffaa988 (diff)
QtQml: Provide an easy way to run non-incremental gc
We want the GC to run to completion on every invocation in that case. We want the same behviour for the gc() method in QML for compatibility reasons. Task-number: QTBUG-119911 Change-Id: I50b50ec9d3cdf7d5193d906dd687fb9f0fd557f6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/memory/qv4mm_p.h')
-rw-r--r--src/qml/memory/qv4mm_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h
index 3b623d22fa..ef0cd0c36c 100644
--- a/src/qml/memory/qv4mm_p.h
+++ b/src/qml/memory/qv4mm_p.h
@@ -314,6 +314,7 @@ public:
void runGC();
bool tryForceGCCompletion();
+ void runFullGC();
void dumpStats() const;
@@ -376,7 +377,7 @@ private:
bool didGCRun = false;
if (aggressiveGC) {
- runGC();
+ runFullGC();
didGCRun = true;
}