diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-02-09 21:35:09 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-03-05 14:06:28 +0100 |
commit | 241b8693d69c73b1177235830049d470aa056aa1 (patch) | |
tree | b6b6eeea3e04bc0d2db73a0dd0f16ba79533f5a5 /src/qml/jsruntime/qv4executablecompilationunit_p.h | |
parent | b0d753ee3a76aaf57a7dafc79f951da2013b3025 (diff) |
Prepare for white allocation during gc(3/9): Function
Function(Data) keeps references to two heap-items; use the newly
introduced wrapper classes to ensure writes always go through the
WriteBarrier.
Provide a "mark" function in ExecutableCompilationUnit so that the
wrapper can actually pick it up - the existing function there was called
markObjects. We don't rename the existing function to keep the diff
minimal.
Provide a mark function in Function for the same reason.
Task-number: QTBUG-121910
Change-Id: Ib56eb2f3f2315036ce43273c9ebc629d10458e9a
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4executablecompilationunit_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h index 81de2965c2..a67086e57a 100644 --- a/src/qml/jsruntime/qv4executablecompilationunit_p.h +++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h @@ -166,6 +166,7 @@ public: void evaluate(); void evaluateModuleRequests(); + void mark(MarkStack *markStack) const { markObjects(markStack); } void markObjects(MarkStack *markStack) const; QString bindingValueAsString(const CompiledData::Binding *binding) const; |