[PATCH] D39888: [lsan] Only use VM_MEMORY_OS_ALLOC_ONCE on Darwin versions that support it

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 03:06:45 PST 2017


kcc added a comment.

In https://reviews.llvm.org/D39888#924384, @ro wrote:

> Just for the record, I've now posted a gcc patch for this issue.  Perhaps the two-line change to lsan/lsan_common.h to allow predefining
>  CAN_SANITIZE_LEAKS from the build environment can still go upstream?


It's hard to judge the patch by it's description. 
Also, why not  #define CAN_SANITIZE_LEAKS to depend on the darwin version?


https://reviews.llvm.org/D39888





More information about the llvm-commits mailing list