Ignore:
Timestamp:
Jan 21, 2015, 6:56:26 PM (10 years ago)
Author:
[email protected]
Message:

Change Heap::m_compiledCode to use a Vector
https://bugs.webkit.org/show_bug.cgi?id=140717

Reviewed by Andreas Kling.

Right now it's a DoublyLinkedList, which is iterated during each
collection. This contributes to some of the longish Eden pause times.
A Vector would be more appropriate and would also allow ExecutableBase
to be 2 pointers smaller.

  • heap/Heap.cpp:

(JSC::Heap::deleteAllCompiledCode):
(JSC::Heap::deleteAllUnlinkedFunctionCode):
(JSC::Heap::clearUnmarkedExecutables):

  • heap/Heap.h:
  • runtime/Executable.h: No longer need to inherit from DoublyLinkedListNode.
File:
1 edited

Legend:

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

    r178364 r178884  
    377377    double m_lastCodeDiscardTime;
    378378
    379     DoublyLinkedList<ExecutableBase> m_compiledCode;
     379    Vector<ExecutableBase*> m_compiledCode;
    380380   
    381381    RefPtr<GCActivityCallback> m_fullActivityCallback;
Note: See TracChangeset for help on using the changeset viewer.