Differential D36179 Diff 109344 www/qt6-webengine/files/patch-src_3rdparty_chromium_base_allocator_partition__allocator_partition__alloc.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt6-webengine/files/patch-src_3rdparty_chromium_base_allocator_partition__allocator_partition__alloc.cc
- This file was added.
--- src/3rdparty/chromium/base/allocator/partition_allocator/partition_alloc.cc.orig 2021-11-25 09:20:12 UTC | |||||
+++ src/3rdparty/chromium/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), |