jemalloc: support page size up to 64KB on AArch64

The default build configuration only supports page sizes up to 4KB.
AArch64 systems (among other architectures) can be configured with
larger page sizes. nixpkgs's jemalloc currently crashes in these
situations.
This commit is contained in:
Pierre Bourdon 2022-08-22 07:03:53 +02:00
parent ec4019f6dc
commit e924a39abd
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C

View File

@ -30,6 +30,9 @@ stdenv.mkDerivation rec {
"--disable-thp"
"je_cv_thp=no"
]
# AArch64 has configurable page size up to 64k. The default configuration
# for jemalloc only supports 4k page sizes.
++ lib.optional stdenv.isAarch64 "--with-lg-page=16"
;
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds";