Shrink Heap::m_executables after cleaning it.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jan 2016 20:48:11 +0000 (20:48 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jan 2016 20:48:11 +0000 (20:48 +0000)
commitb0632861c4b28c4c3fb85b0ca48886874904c6f7
tree3967630bbabbc1deaeae098cc46468c1f82486b3
parent695d37f7bdfd1fe756a6662cdc74610cfa002da1
Shrink Heap::m_executables after cleaning it.
<https://webkit.org/b/153682>

Reviewed by Darin Adler.

The Heap::m_executables Vector was never shrunk down, despite sometimes
getting pretty huge (~500kB in my longest-running WebContent process.)

After GC has finished pruning unmarked Executables, shrink the Vector.

* heap/Heap.cpp:
(JSC::Heap::clearUnmarkedExecutables):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/Heap.cpp