This patch uses similar allocator configuration to Asan, i.e. dynamic
allocator start address (~(uptr)0) and use VeryDenseSizeClassMap.
Since there are small memory spaces for SV39, using the
DefaultSizeClassMap causes error:
sanitizer_allocator_primary64.h:639:18: error: static assertion failed due to requirement '(kRegionSize) >= (1ULL << (64 / 2))':
639 | COMPILER_CHECK((kRegionSize) >= (1ULL << (SANITIZER_WORDSIZE / 2))); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sanitizer_common/sanitizer_allocator_primary64.h:639:32: note: expression evaluates to '2147483648 >= 4294967296'
why this can be like SANITIZER_FUCHSIA
DefaultSizeClassMap
and
kAllocatorSize = 0x40000000000ULL; // 4T.