Build jemalloc for 64k.
Still works on 4k systems but will allocate 16 pages at a time
This commit is contained in:
parent
56c1190180
commit
d0acf489fd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user