[compiler-rt] b5c2075 - [Sanitizers][Driverkit] Stop using Sanitizer Allocator64 on Driverkit
Blue Gaston via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 11:30:09 PDT 2023
Author: Blue Gaston
Date: 2023-08-16T11:29:36-07:00
New Revision: b5c2075081b7a174edd6f7905e486ce2217a73ec
URL: https://github.com/llvm/llvm-project/commit/b5c2075081b7a174edd6f7905e486ce2217a73ec
DIFF: https://github.com/llvm/llvm-project/commit/b5c2075081b7a174edd6f7905e486ce2217a73ec.diff
LOG: [Sanitizers][Driverkit] Stop using Sanitizer Allocator64 on Driverkit
Before refactoring this code, all arm64 were set to use the 32bit allocator. This patch reverts back that behavior for DriverKit.
Because we target DriverKit as the target OS, rather than a specific platform, reverting back to the previous behavior is preferred to fix a failure we are seeing on embedded platforms.
Though it may be more correct in the future to match the allocator to the platform being used.
rdar://113649286
Differential Revision: https://reviews.llvm.org/D158028
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 764996e57355b9..c1ca5c9ca44783 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -284,7 +284,7 @@
// For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
// change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
-# if SANITIZER_RISCV64 || SANITIZER_IOS
+# if SANITIZER_RISCV64 || SANITIZER_IOS || SANITIZER_DRIVERKIT
# define SANITIZER_CAN_USE_ALLOCATOR64 0
# elif defined(__mips64) || defined(__hexagon__)
# define SANITIZER_CAN_USE_ALLOCATOR64 0
More information about the llvm-commits
mailing list