[all-commits] [llvm/llvm-project] f00a99: [Sanitizer][RISCV][AArch64][Android] Adjust alloca...

Luís Marques via All-commits all-commits at lists.llvm.org
Tue Mar 30 07:16:40 PDT 2021


  Branch: refs/heads/test-D97234
  Home:   https://github.com/llvm/llvm-project
  Commit: f00a996acf21d2d253c568a6bf3a5b123c301f56
      https://github.com/llvm/llvm-project/commit/f00a996acf21d2d253c568a6bf3a5b123c301f56
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp

  Log Message:
  -----------
  [Sanitizer][RISCV][AArch64][Android] Adjust allocator tests

On 64-bit systems with small VMAs (e.g. 39-bit) we can't use
SizeClassAllocator64 parameterized with size class maps containing a large
number of classes, as that will make the allocator region size too small
(< 2^32). Several tests were already disabled for Android because of this.

This patch provides the correct allocator configuration for RISC-V
(riscv64), generalizes the gating condition for tests that can't be enabled
for small VMA systems, and tweaks the tests that can be made compatible with
those systems to enable them.

I think the previous gating on Android should instead be AArch64+Android, so
the patch reflects that.




More information about the All-commits mailing list