aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc
blob: 9b1a187130abe48a96b31febd8356c46298e0da6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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