Wasm: Any function argument of type Void should be a validation error
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2018 07:38:06 +0000 (07:38 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2018 07:38:06 +0000 (07:38 +0000)
commitc39ef1e39954e155e55f9115023fdeccce6352fa
treedc920992e00e46a010959eadb633b9fc4f1193db
parent39fc3938d4550bdf4c3690e0e963bc792883e0ce
Wasm: Any function argument of type Void should be a validation error
https://bugs.webkit.org/show_bug.cgi?id=186794
<rdar://problem/41140257>

Reviewed by Keith Miller.

We have evidence showing that processes with small heaps using the
JS API are more space efficient when using system malloc. Our main
hypothesis as to why this is, is that when dealing with small heaps,
one malloc can be more efficient at optimizing memory usage than
two mallocs.

* bmalloc/BPlatform.h:
* bmalloc/Environment.cpp:
(bmalloc::isNanoMallocEnabled):
(bmalloc::Environment::computeIsDebugHeapEnabled):
* bmalloc/ProcessCheck.h:
(bmalloc::shouldProcessUnconditionallyUseBmalloc):
* bmalloc/ProcessCheck.mm:
(bmalloc::shouldProcessUnconditionallyUseBmalloc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/BPlatform.h
Source/bmalloc/bmalloc/Environment.cpp
Source/bmalloc/bmalloc/ProcessCheck.h
Source/bmalloc/bmalloc/ProcessCheck.mm