Commit ced43fb7 authored by Mark Santaniello's avatar Mark Santaniello Committed by Facebook Github Bot

simplify usingJEMalloc() when FOLLY_SANITIZE is true

Summary: Sanitizers always intercept the allocator, so there's no reason to do the elaborate `usingJEMalloc()` logic -- it will always fail.

Reviewed By: yfeldblum

Differential Revision: D20056781

fbshipit-source-id: c0d4a3b103e26bacc0a6589f8d54b4a2ec85f771
parent 97c7ab42
......@@ -67,7 +67,7 @@ namespace folly {
/**
* Determine if we are using jemalloc or not.
*/
#if defined(FOLLY_ASSUME_NO_JEMALLOC)
#if defined(FOLLY_ASSUME_NO_JEMALLOC) || FOLLY_SANITIZE
inline bool usingJEMalloc() noexcept {
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment