bmalloc should automatically disable itself when ThreadSanitizer is used
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2016 23:47:10 +0000 (23:47 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2016 23:47:10 +0000 (23:47 +0000)
commit10351e6e94899c244a36fe80a74e2946d2cc62c2
treeb957b7e88d4028f2357e7d3cd5a0258b880fe8b7
parente5ba2a131af5168b7479d58180bc7742240d4e57
bmalloc should automatically disable itself when ThreadSanitizer is used
<https://webkit.org/b/157527>

Reviewed by Michael Catanzaro.

* bmalloc/Environment.cpp:
(bmalloc::isASanEnabled): Rename to isSanitizerEnabled.
(bmalloc::isSanitizerEnabled): Rename from isASanEnabled. Add
support for detecting ThreadSanitizer.
(bmalloc::Environment::computeIsBmallocEnabled): Switch from
isASanEnabled to isSanitizerEnabled.

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