opnsense-ports/devel/electron27/files/patch-base_allocator_dispatcher_tls.h
Franco Fichtner f253cd830b */*: sync with upstream
Taken from: FreeBSD
2023-12-11 11:32:56 +01:00

11 lines
531 B
C++

--- base/allocator/dispatcher/tls.h.orig 2023-05-25 00:41:37 UTC
+++ base/allocator/dispatcher/tls.h
@@ -50,7 +50,7 @@ struct BASE_EXPORT MMapAllocator {
partition_alloc::PartitionPageSize();
#elif BUILDFLAG(IS_APPLE)
constexpr static size_t AllocationChunkSize = 16384;
-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)
+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)
constexpr static size_t AllocationChunkSize = 16384;
#else
constexpr static size_t AllocationChunkSize = 4096;