Ignore:
Timestamp:
Mar 12, 2014, 11:29:00 AM (11 years ago)
Author:
[email protected]
Message:

Remove HandleSet::m_nextToFinalize
https://bugs.webkit.org/show_bug.cgi?id=130109

Reviewed by Mark Lam.

This is a remnant of when HandleSet contained things that needed to be finalized.

  • heap/HandleSet.cpp:

(JSC::HandleSet::HandleSet):
(JSC::HandleSet::writeBarrier):

  • heap/HandleSet.h:

(JSC::HandleSet::allocate):
(JSC::HandleSet::deallocate):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/HandleSet.h

    r148696 r165490  
    101101    SentinelLinkedList<Node> m_immediateList;
    102102    SinglyLinkedList<Node> m_freeList;
    103     Node* m_nextToFinalize;
    104103};
    105104
     
    126125inline HandleSlot HandleSet::allocate()
    127126{
    128     // Forbid assignment to handles during the finalization phase, since it would violate many GC invariants.
    129     // File a bug with stack trace if you hit this.
    130     RELEASE_ASSERT(!m_nextToFinalize);
    131 
    132127    if (m_freeList.isEmpty())
    133128        grow();
     
    142137{
    143138    HandleSet::Node* node = toNode(handle);
    144     if (node == m_nextToFinalize) {
    145         ASSERT(m_nextToFinalize->next());
    146         m_nextToFinalize = m_nextToFinalize->next();
    147     }
    148 
    149139    SentinelLinkedList<HandleSet::Node>::remove(node);
    150140    m_freeList.push(node);
Note: See TracChangeset for help on using the changeset viewer.