diff options
author | Ulf Hermann <[email protected]> | 2024-09-10 15:42:59 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2024-09-10 23:11:53 +0200 |
commit | d07c9071b4b172c69d0f5a7474e1e1c22de28e8e (patch) | |
tree | 043cb66129f7da9811ff4ea4cc0d807bd84bbf24 /src/qml/jsruntime/qv4engine_p.h | |
parent | 9ea281b3b5a8a6eeef9db597761de84fe8ccbaf2 (diff) |
QtQml: Never clear all executable CUs from the QQmlEngine
Since the executable CUs are used as entry points for marking by the GC,
dropping them from QQmlEngine means their strings, lookups, regexes etc
won't get marked anymore. If, however, the CUs are still referenced
elsewhere, their inner objects will still get used, despite having
potentially been swept by the GC.
Also fix the documentation of clearComponentCache() to clarify that it
does in fact not clear all components.
Pick-to: 6.8
Fixes: QTBUG-128638
Fixes: QTBUG-128782
Change-Id: I96480914733c399c18778202ae8dca7e332c3a85
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 0958ab3ab5..6b262cede6 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -767,7 +767,6 @@ public: { return m_compilationUnits; } - void clearCompilationUnits() { m_compilationUnits.clear(); } void trimCompilationUnits(); QV4::Value *registerNativeModule(const QUrl &url, const QV4::Value &module); |