[compiler-rt] r323386 - [scudo] Remove SANITIZER_LINUX requirement for the malloc interceptors
Kostya Kortchinsky via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 14:46:34 PST 2018
Author: cryptoad
Date: Wed Jan 24 14:46:34 2018
New Revision: 323386
URL: http://llvm.org/viewvc/llvm-project?rev=323386&view=rev
Log:
[scudo] Remove SANITIZER_LINUX requirement for the malloc interceptors
Summary:
Currently all platforms are using the `scudo_interceptors.cpp` interceptors.
We might to come up with platform specific interceptors when/if we get Apple &
Windows, but as of now, that allows for Fuchsia to use them.
`scudo_new_delete.cpp` didn't have the `#if SANITIZER_LINUX` so it's good to go.
Reviewers: alekseyshl, flowerhack
Reviewed By: flowerhack
Subscribers: delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D42506
Modified:
compiler-rt/trunk/lib/scudo/scudo_interceptors.cpp
Modified: compiler-rt/trunk/lib/scudo/scudo_interceptors.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/scudo/scudo_interceptors.cpp?rev=323386&r1=323385&r2=323386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/scudo/scudo_interceptors.cpp (original)
+++ compiler-rt/trunk/lib/scudo/scudo_interceptors.cpp Wed Jan 24 14:46:34 2018
@@ -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(uptr, malloc_usable_size, vo
INTERCEPTOR(int, mallopt, int cmd, int value) {
return -1;
}
-
-#endif // SANITIZER_LINUX
More information about the llvm-commits
mailing list