[PATCH] D42506: [scudo] Remove SANITIZER_LINUX requirement for the malloc interceptors
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 14:49:54 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT323386: [scudo] Remove SANITIZER_LINUX requirement for the malloc interceptors (authored by cryptoad, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42506?vs=131357&id=131360#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D42506
Files:
lib/scudo/scudo_interceptors.cpp
Index: lib/scudo/scudo_interceptors.cpp
===================================================================
--- lib/scudo/scudo_interceptors.cpp
+++ lib/scudo/scudo_interceptors.cpp
@@ -7,13 +7,10 @@
//
//===----------------------------------------------------------------------===//
///
-/// Linux specific malloc interception functions.
+/// Interceptors for malloc related functions.
///
//===----------------------------------------------------------------------===//
-#include "sanitizer_common/sanitizer_platform.h"
-#if SANITIZER_LINUX
-
#include "scudo_allocator.h"
#include "interception/interception.h"
@@ -71,5 +68,3 @@
INTERCEPTOR(int, mallopt, int cmd, int value) {
return -1;
}
-
-#endif // SANITIZER_LINUX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42506.131360.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/d0ca2ed2/attachment.bin>
More information about the llvm-commits
mailing list