Disable MemoryIdler::unmapUnusedStack with ASAN
[folly.git] / folly / detail / MemoryIdler.cpp
index 12286855cd4b00e3f65891d43e9d4544cb5ffbdc..129debddc17ce86bdb1fc26eabe261c06965542d 100644 (file)
@@ -80,7 +80,7 @@ void MemoryIdler::flushLocalMallocCaches() {
 // and arithmetic (and bug compatibility) are not portable.  The set of
 // platforms could be increased if it was useful.
 #if (FOLLY_X64 || FOLLY_PPC64) && defined(_GNU_SOURCE) && \
-    defined(__linux__) && !FOLLY_MOBILE
+    defined(__linux__) && !FOLLY_MOBILE && !FOLLY_SANITIZE_ADDRESS
 
 static FOLLY_TLS uintptr_t tls_stackLimit;
 static FOLLY_TLS size_t tls_stackSize;