| Index: Source/platform/heap/Handle.h
|
| diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
|
| index 39046ada559b1e6a46e7c7d15ea4baa19a7743dc..f1cf4b72e1e2ca3e0e481c6452ab85341ce2f415 100644
|
| --- a/Source/platform/heap/Handle.h
|
| +++ b/Source/platform/heap/Handle.h
|
| @@ -357,9 +357,6 @@ public:
|
| CrossThreadWeakPersistent(const RawPtr<U>& other) : Parent(other.get()) { }
|
| };
|
|
|
| -// PersistentNode must be the left-most class to let the
|
| -// visitor->trace(static_cast<Collection*>(this)) trace the correct position.
|
| -// FIXME: derive affinity based on the collection.
|
| template<typename Collection>
|
| class PersistentHeapCollectionBase : public Collection {
|
| // We overload the various new and delete operators with using the WTF DefaultAllocator to ensure persistent
|
| @@ -399,6 +396,7 @@ private:
|
| NO_LAZY_SWEEP_SANITIZE_ADDRESS
|
| void initialize()
|
| {
|
| + // FIXME: Derive affinity based on the collection.
|
| ThreadState* state = ThreadState::current();
|
| ASSERT(state->checkThread());
|
| m_persistentNode = state->persistentRegion()->allocatePersistentNode(this, TraceMethodDelegate<PersistentHeapCollectionBase<Collection>, &PersistentHeapCollectionBase<Collection>::trace>::trampoline);
|
|
|