[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:51 PDT 2018


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

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

Repository:
  rL LLVM

https://reviews.llvm.org/D47160

Files:
  compiler-rt/trunk/lib/asan/asan_allocator.h


Index: compiler-rt/trunk/lib/asan/asan_allocator.h
===================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.h
+++ compiler-rt/trunk/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.148097.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/b329da5c/attachment.bin>


More information about the llvm-commits mailing list