diff options
Diffstat (limited to 'www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc')
-rw-r--r-- | www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc new file mode 100644 index 000000000000..9b1a187130ab --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc @@ -0,0 +1,12 @@ +--- base/allocator/partition_allocator/partition_alloc.cc.orig 2020-11-30 16:06:59 UTC ++++ base/allocator/partition_allocator/partition_alloc.cc +@@ -197,6 +197,9 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me + // Check that some of our zanier calculations worked out as expected. + #if ENABLE_TAG_FOR_MTE_CHECKED_PTR + static_assert(kSmallestBucket >= kAlignment, "generic smallest bucket"); ++#elif defined(__i386__) && defined(OS_FREEBSD) ++ // alignof(std::max_align_t) is only 4 on FreeBSD/i386 ++ static_assert(kSmallestBucket >= kAlignment, "generic smallest bucket"); + #else + static_assert(kSmallestBucket == kAlignment, "generic smallest bucket"); + #endif |