From: Andrii Grynenko Date: Wed, 1 Mar 2017 18:35:36 +0000 (-0800) Subject: Disable MemoryIdler::unmapUnusedStack with ASAN X-Git-Tag: v2017.03.06.00~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94a3d5d31413b318d8a978b003e0f93ddf44a617;p=folly.git 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 --- 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;