[bmalloc] Do not start scavenger thread if we use system malloc
authorysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 08:43:07 +0000 (08:43 +0000)
committerysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 08:43:07 +0000 (08:43 +0000)
commit7de49dc296ecdc6dcc978acba24f7ab61c4cffc6
treece3bba9133a512d5564ec7b5b8e9b1ab99a0e7a0
parent4dfff90e7a4151fa436dd101beb55ac47e1376e4
[bmalloc] Do not start scavenger thread if we use system malloc
https://bugs.webkit.org/show_bug.cgi?id=194674

Reviewed by Mark Lam.

We always start the scavenger thread even if system malloc is used by the environment variable like "Malloc=1".
Because bmalloc allocation goes to the system malloc if "Malloc=1" is set, we do not need to scavenge. This patch
changes it not to start the scavenger thread.

* bmalloc/Scavenger.cpp:
(bmalloc::Scavenger::Scavenger):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/Scavenger.cpp