diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-26 17:50:44 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-28 21:45:48 +0000 |
commit | 94f0d86b5d4c52a6af4843d05d47e7dcf2d1acaa (patch) | |
tree | 60e7d8615999d854e365c4caf1fc003ab83540c9 /src/qml/memory/qv4mm_p.h | |
parent | 464b878b973710077b2b92b1682d6f38c83554dd (diff) |
Add support for WeakSet
Change-Id: I5cee2bf0c6a45ad2c14b52e1a4fc5ef015e01042
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/memory/qv4mm_p.h')
-rw-r--r-- | src/qml/memory/qv4mm_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h index da162d2dfe..bbbbb1aef6 100644 --- a/src/qml/memory/qv4mm_p.h +++ b/src/qml/memory/qv4mm_p.h @@ -275,6 +275,7 @@ public: } void registerWeakMap(Heap::MapObject *map); + void registerWeakSet(Heap::SetObject *set); protected: /// expects size to be aligned @@ -299,6 +300,7 @@ public: PersistentValueStorage *m_weakValues; QVector<Value *> m_pendingFreedObjectWrapperValue; Heap::MapObject *weakMaps = nullptr; + Heap::SetObject *weakSets = nullptr; std::size_t unmanagedHeapSize = 0; // the amount of bytes of heap that is not managed by the memory manager, but which is held onto by managed items. std::size_t unmanagedHeapSizeGCLimit; |