We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d023995 commit 4720e38Copy full SHA for 4720e38
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
@@ -639,7 +639,8 @@ class SizeClassAllocator64 {
639
static_assert(kRegionSize >= SizeClassMap::kMaxSize,
640
"Region size exceed largest size");
641
// kRegionSize must be <= 2^36, see CompactPtrT.
642
- COMPILER_CHECK((kRegionSize) <= (1ULL << (SANITIZER_WORDSIZE / 2 + 4)));
+ COMPILER_CHECK((kRegionSize) <=
643
+ (1ULL << (sizeof(CompactPtrT) * 8 + kCompactPtrScale)));
644
// Call mmap for user memory with at least this size.
645
static const uptr kUserMapSize = 1 << 18;
646
// Call mmap for metadata memory with at least this size.
0 commit comments