aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_allocator_partition__allocator_partition__alloc.cc
blob: 502e3f0b00e3bbb6b8b9c3592a2f9e7303786dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- base/allocator/partition_allocator/partition_alloc.cc.orig	2021-04-14 01:08:36 UTC
+++ base/allocator/partition_allocator/partition_alloc.cc
@@ -56,7 +56,12 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me
       "maximum direct mapped allocation");
 
   // Check that some of our zanier calculations worked out as expected.
+#if 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
   static_assert(kMaxBucketed == 983040, "generic max bucketed");
   STATIC_ASSERT_OR_PA_CHECK(
       MaxSystemPagesPerSlotSpan() < (1 << 8),