diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-01-10 16:06:17 +0100 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-03-05 14:06:29 +0100 |
| commit | 14f549fdc5596c7ad0d9e5b516ec369f78ca57cf (patch) | |
| tree | 363949142a1555d43ce2d62c2c9ce774c4968a2f /src/qml/jsruntime/qv4engine.cpp | |
| parent | bb3999a22d3282911005865135c9d6d49ae65728 (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/qv4engine.cpp')
0 files changed, 0 insertions, 0 deletions
