path: root/src/qml
diff options
authorFabian Kosmale <fabian.kosmale@qt.io>2021-02-10 13:35:17 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-02-10 14:18:51 +0100
commit162230208eede3e8db030f0498a70cbf81ca143a (patch)
treea1f0a47937438f2d7359c7b020fabf86ca818340 /src/qml
parent9432ad643ea39bfcea80d385a39bfbede9aaaab0 (diff)
QV4::Lookup: update comment about gc assumption
Change-Id: I13304631a9870874fb130cd9e6598065fc952a71 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h
index 6232d78a57..5e100a8d0f 100644
--- a/src/qml/jsruntime/qv4lookup_p.h
+++ b/src/qml/jsruntime/qv4lookup_p.h
@@ -69,6 +69,7 @@ struct Q_QML_PRIVATE_EXPORT Lookup {
bool (*setter)(Lookup *l, ExecutionEngine *engine, Value &object, const Value &v);
// NOTE: gc assumes the first two entries in the struct are pointers to heap objects or null
+ // or that the least significant bit is 1 (see the Lookup::markObjects function)
union {
struct {
Heap::Base *h1;