aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4executablecompilationunit.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2024-01-10 16:06:17 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2024-03-05 14:06:29 +0100
commit14f549fdc5596c7ad0d9e5b516ec369f78ca57cf (patch)
tree363949142a1555d43ce2d62c2c9ce774c4968a2f /src/qml/jsruntime/qv4executablecompilationunit.cpp
parentbb3999a22d3282911005865135c9d6d49ae65728 (diff)
qv4mm: Make sweep incremental, too
This commit splits the sweep phase into multiple sub-phases. Note that this is safe, as we already are careful about running user code in sweep for Component.onDestruction callbacks; for JS objects, we don't execute arbitrary code in their finalizers, so that's also safe. The one thing we need to be cautious about is that we don't split the nulling of the weak values (mainly QObjectWrappers) from actually freeing the pending QObjectWrapper; otherwise the isUndefined/empty check could report a wrong result. Task-number: QTBUG-119274 Change-Id: I57210ac161c897d5946f7c000162d0a30701af19 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit.cpp')
0 files changed, 0 insertions, 0 deletions