X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..refs/heads/master:/heap/HandleSet.h diff --git a/heap/HandleSet.h b/heap/HandleSet.h index 58251f6..c4caf9d 100644 --- a/heap/HandleSet.h +++ b/heap/HandleSet.h @@ -100,7 +100,6 @@ private: SentinelLinkedList m_strongList; SentinelLinkedList m_immediateList; SinglyLinkedList m_freeList; - Node* m_nextToFinalize; }; inline HandleSet* HandleSet::heapFor(HandleSlot handle) @@ -125,10 +124,6 @@ inline HandleSet::Node* HandleSet::toNode(HandleSlot handle) inline HandleSlot HandleSet::allocate() { - // Forbid assignment to handles during the finalization phase, since it would violate many GC invariants. - // File a bug with stack trace if you hit this. - RELEASE_ASSERT(!m_nextToFinalize); - if (m_freeList.isEmpty()) grow(); @@ -141,11 +136,6 @@ inline HandleSlot HandleSet::allocate() inline void HandleSet::deallocate(HandleSlot handle) { HandleSet::Node* node = toNode(handle); - if (node == m_nextToFinalize) { - ASSERT(m_nextToFinalize->next()); - m_nextToFinalize = m_nextToFinalize->next(); - } - SentinelLinkedList::remove(node); m_freeList.push(node); }