[PATCH] D123822: [compiler-rt][lsan] Share platform allocator settings between ASan and LSan

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 15:22:09 PDT 2022


leonardchan added inline comments.


================
Comment at: compiler-rt/lib/asan/asan_allocator.h:129-142
-# elif defined(__aarch64__) && SANITIZER_ANDROID
-// Android needs to support 39, 42 and 48 bit VMA.
-const uptr kAllocatorSpace =  ~(uptr)0;
-const uptr kAllocatorSize  =  0x2000000000ULL;  // 128G.
-typedef VeryCompactSizeClassMap SizeClassMap;
-#elif SANITIZER_RISCV64
-const uptr kAllocatorSpace = ~(uptr)0;
----------------
leonardchan wrote:
> vitalybuka wrote:
> > leonardchan wrote:
> > > vitalybuka wrote:
> > > > i suspect these smaller values has something to do with ability allocate shadow, which is not an issue for lsan
> > > Do you recommend I should remove them?
> > we can't just remove them for asan, because there probably was a reason
> > but now, with shared config, it's behavior change for lsan
> Oh I see, yeah perhaps we can instead just "unify" the values that are already matching in the asan and lsan configs rather than moving everything.
D126927 should address this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123822/new/

https://reviews.llvm.org/D123822



More information about the llvm-commits mailing list