From 94a3d5d31413b318d8a978b003e0f93ddf44a617 Mon Sep 17 00:00:00 2001 From: Andrii Grynenko Date: Wed, 1 Mar 2017 10:35:36 -0800 Subject: [PATCH] Disable MemoryIdler::unmapUnusedStack with ASAN Summary: It doesn't work nicely with fake stacks (which are used with detect_stack_use_after_return). Reviewed By: yfeldblum Differential Revision: D4631995 fbshipit-source-id: f139041314f8f64c0cf0a15874d6a4710fb2a5b6 --- folly/detail/MemoryIdler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/detail/MemoryIdler.cpp b/folly/detail/MemoryIdler.cpp index 12286855..129debdd 100644 --- a/folly/detail/MemoryIdler.cpp +++ b/folly/detail/MemoryIdler.cpp @@ -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; -- 2.34.1