cc2a83d
2015-01-22  Jakub Jelinek  <jakub@redhat.com>
cc2a83d
cc2a83d
	* sanitizer_common/sanitizer_platform.h
cc2a83d
	(SANITIZER_AARCH64_VMA): Set to 42.
cc2a83d
	(SANITIZER_CAN_USE_ALLOCATOR64): Set to 1 on __aarch64__
cc2a83d
	if SANITIZER_WORDSIZE is 64.
cc2a83d
	(SANITIZER_MMAP_RANGE_SIZE): Define to 1ULL << 42 for
cc2a83d
	__aarch64__.
cc2a83d
cc2a83d
--- libsanitizer/sanitizer_common/sanitizer_platform.h.jj	2015-11-23 13:29:55.000000000 +0100
cc2a83d
+++ libsanitizer/sanitizer_common/sanitizer_platform.h	2016-01-15 12:04:08.511206409 +0100
cc2a83d
@@ -82,7 +82,7 @@
cc2a83d
 // VMA size definition for architecture that support multiple sizes.
cc2a83d
 // AArch64 has 3 VMA sizes: 39, 42 and 48.
cc2a83d
 #if !defined(SANITIZER_AARCH64_VMA)
cc2a83d
-# define SANITIZER_AARCH64_VMA 39
cc2a83d
+# define SANITIZER_AARCH64_VMA 42
cc2a83d
 #else
cc2a83d
 # if SANITIZER_AARCH64_VMA != 39 && SANITIZER_AARCH64_VMA != 42
cc2a83d
 #  error "invalid SANITIZER_AARCH64_VMA size"
cc2a83d
@@ -95,7 +95,7 @@
cc2a83d
 // For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
cc2a83d
 // change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
cc2a83d
 #ifndef SANITIZER_CAN_USE_ALLOCATOR64
cc2a83d
-# if defined(__mips64) || defined(__aarch64__)
cc2a83d
+# if defined(__mips64)
cc2a83d
 #  define SANITIZER_CAN_USE_ALLOCATOR64 0
cc2a83d
 # else
cc2a83d
 #  define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)
cc2a83d
@@ -107,6 +107,8 @@
cc2a83d
 // will still work but will consume more memory for TwoLevelByteMap.
cc2a83d
 #if defined(__mips__)
cc2a83d
 # define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 40)
cc2a83d
+#elif defined(__aarch64__)
cc2a83d
+# define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 42)
cc2a83d
 #else
cc2a83d
 # define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 47)
cc2a83d
 #endif