ParallelHelperPool::runFunctionInParallel() shouldn't allocate, and ParallelHelperPoo...
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Sep 2015 20:25:42 +0000 (20:25 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Sep 2015 20:25:42 +0000 (20:25 +0000)
commit603defcc20cde3c7bf4f1b59c57edcfcb320d085
tree8c5dc87577339965f3fe6ef82a0fa9c0cefe4959
parent37daf2fdd3c305be5c7fb2c221d10a6e6036a38d
ParallelHelperPool::runFunctionInParallel() shouldn't allocate, and ParallelHelperPool.h shouldn't be included everywhere
https://bugs.webkit.org/show_bug.cgi?id=149635

Reviewed by Saam Barati.

Source/JavaScriptCore:

It bugged me that this change caused a whole-world recompile. So, I changed the code so
that ParallelHelperPool.h is only included by Heap.cpp and not by Heap.h.

* heap/Heap.cpp:
(JSC::Heap::Heap):
(JSC::Heap::markRoots):
(JSC::Heap::copyBackingStores):
* heap/Heap.h:

Source/WTF:

* wtf/ParallelHelperPool.h:
(WTF::ParallelHelperClient::runFunctionInParallel): Stack-allocate the task instead of heap-allocating it.

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