Build jemalloc for 64k.

Still works on 4k systems but will allocate 16 pages at a time
This commit is contained in:
bobpaul 2025-02-24 12:22:39 -05:00
parent 56c1190180
commit d0acf489fd
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = jemalloc
pkgdesc = General-purpose scalable concurrent malloc implementation
pkgver = 5.3.0
pkgrel = 5
pkgrel = 6
epoch = 1
url = https://jemalloc.net/
arch = x86_64

View File

@ -6,7 +6,7 @@
pkgname=jemalloc
epoch=1
pkgver=5.3.0
pkgrel=5
pkgrel=6
pkgdesc='General-purpose scalable concurrent malloc implementation'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('BSD')
@ -25,9 +25,15 @@ build() {
# FS#71745: GCC-built jemalloc causes telegram-desktop to crash a lot. The reason is still not clear.
export CC=clang
export CXX=clang++
case ${CARCH} in
"powerpc64le")
USE_64K_PAGES=--with-lg-page=16
;;
esac
USE_64K_PAGES=--with-lg-page=16
./configure \
--enable-prof \
$USE_64K_PAGES \
--enable-autogen \
--prefix=/usr
make