diff options
Diffstat (limited to 'src/qml/memory/qv4mm_p.h')
-rw-r--r-- | src/qml/memory/qv4mm_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h index e3a011caf9..da162d2dfe 100644 --- a/src/qml/memory/qv4mm_p.h +++ b/src/qml/memory/qv4mm_p.h @@ -274,6 +274,8 @@ public: return static_cast<typename ManagedType::Data *>(b); } + void registerWeakMap(Heap::MapObject *map); + protected: /// expects size to be aligned Heap::Base *allocString(std::size_t unmanagedSize); @@ -296,6 +298,7 @@ public: PersistentValueStorage *m_persistentValues; PersistentValueStorage *m_weakValues; QVector<Value *> m_pendingFreedObjectWrapperValue; + Heap::MapObject *weakMaps = 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; |