[PATCH] D47160: [asan] Use dynamic allocator space address on Android/AArch64.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 13:48:50 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT333025: [asan] Use dynamic allocator space address on Android/AArch64. (authored by eugenis, committed by ).
Herald added a subscriber: Sanitizers.

Changed prior to commit:
  https://reviews.llvm.org/D47160?vs=147864&id=148096#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D47160

Files:
  lib/asan/asan_allocator.h


Index: lib/asan/asan_allocator.h
===================================================================
--- lib/asan/asan_allocator.h
+++ lib/asan/asan_allocator.h
@@ -129,7 +129,8 @@
 const uptr kAllocatorSize  =  0x20000000000ULL;  // 2T.
 typedef DefaultSizeClassMap SizeClassMap;
 # elif defined(__aarch64__) && SANITIZER_ANDROID
-const uptr kAllocatorSpace =  0x3000000000ULL;
+// Android needs to support 39, 42 and 48 bit VMA.
+const uptr kAllocatorSpace =  ~(uptr)0;
 const uptr kAllocatorSize  =  0x2000000000ULL;  // 128G.
 typedef VeryCompactSizeClassMap SizeClassMap;
 # elif defined(__aarch64__)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47160.148096.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/e3aa3ab6/attachment.bin>


More information about the llvm-commits mailing list