Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/base/allocator/partition_allocator/page_allocator_constants.h b/base/allocator/partition_allocator/page_allocator_constants.h
- index bfd5753..b589e69 100644
- --- a/base/allocator/partition_allocator/page_allocator_constants.h
- +++ b/base/allocator/partition_allocator/page_allocator_constants.h
- @@ -46,7 +46,7 @@ PageAllocationGranularityShift() {
- // compiled for 64kB are likely to work on 4kB systems, 64kB is a good choice
- // here.
- return 16; // 64kB
- -#elif defined(_MIPS_ARCH_LOONGSON)
- +#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_ARM64)
- return 14; // 16kB
- #elif defined(OS_APPLE) && defined(ARCH_CPU_64_BITS)
- return vm_page_shift;
- diff --git a/base/allocator/partition_allocator/partition_alloc_constants.h b/base/allocator/partition_allocator/partition_alloc_constants.h
- index 404ff59..29cbcd8 100644
- --- a/base/allocator/partition_allocator/partition_alloc_constants.h
- +++ b/base/allocator/partition_allocator/partition_alloc_constants.h
- @@ -38,7 +38,7 @@ namespace base {
- // other constant values, we pack _all_ `PartitionRoot::Alloc` sizes perfectly
- // up against the end of a system page.
- -#if defined(_MIPS_ARCH_LOONGSON)
- +#if defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_ARM64)
- PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR ALWAYS_INLINE size_t
- PartitionPageShift() {
- return 16; // 64 KiB
- diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
- index bd1fefe..c968fff 100644
- --- a/build/config/compiler/BUILD.gn
- +++ b/build/config/compiler/BUILD.gn
- @@ -463,7 +463,7 @@ config("compiler") {
- # Reduce the page size from 65536 in order to reduce binary size slightly
- # by shrinking the alignment gap between segments. This also causes all
- # segments to be mapped adjacently, which breakpad relies on.
- - ldflags += [ "-Wl,-z,max-page-size=4096" ]
- + ldflags += [ "-Wl,-z,max-page-size=16384" ]
- }
- } else if (use_gold) {
- ldflags += [ "-fuse-ld=gold" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement