Initial commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 7dcdafea00a3a02cfbc84a798a0cc626515011eb Mon Sep 17 00:00:00 2001
|
||||
From: lexprfuncall <5360361+lexprfuncall@users.noreply.github.com>
|
||||
Date: Mon, 25 Aug 2025 19:39:30 -0700
|
||||
Subject: [PATCH] Change the default page size to 64KiB on Aarch64 Linux
|
||||
|
||||
This updates the configuration script to set the default page size to
|
||||
64KiB on Aarch64 Linux. This is motivated by compatibility as a build
|
||||
configured for a 64KiB page will work on kernels that use the smaller
|
||||
4KiB or 16KiB pages, whereas the reverse is not true.
|
||||
|
||||
To make the configured page size setting more visible, the script now
|
||||
displays the page size when printing the configuration results.
|
||||
|
||||
Users that want to override the page size in to choose a smaller value
|
||||
can still do so with the --with-lg-pagesize configuration option.
|
||||
---
|
||||
configure.ac | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ce5c8adc63..dd0c3cc88d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1990,6 +1990,11 @@ case "${host}" in
|
||||
LG_PAGE=14
|
||||
fi
|
||||
;;
|
||||
+ aarch64-unknown-linux-*)
|
||||
+ if test "x$LG_PAGE" = "xdetect"; then
|
||||
+ LG_PAGE=16
|
||||
+ fi
|
||||
+ ;;
|
||||
esac
|
||||
if test "x$LG_PAGE" = "xdetect"; then
|
||||
AC_CACHE_CHECK([LG_PAGE],
|
||||
@@ -3077,6 +3082,8 @@ AC_MSG_RESULT([INCLUDEDIR : ${INCLUDEDIR}])
|
||||
AC_MSG_RESULT([LIBDIR : ${LIBDIR}])
|
||||
AC_MSG_RESULT([MANDIR : ${MANDIR}])
|
||||
AC_MSG_RESULT([])
|
||||
+AC_MSG_RESULT([LG_PAGE : ${LG_PAGE}])
|
||||
+AC_MSG_RESULT([])
|
||||
AC_MSG_RESULT([srcroot : ${srcroot}])
|
||||
AC_MSG_RESULT([abs_srcroot : ${abs_srcroot}])
|
||||
AC_MSG_RESULT([objroot : ${objroot}])
|
||||
@@ -0,0 +1,37 @@
|
||||
[build]
|
||||
type = "autotools"
|
||||
|
||||
[build.flags]
|
||||
configure = [
|
||||
"--enable-prof",
|
||||
"--enable-autogen",
|
||||
]
|
||||
post_install = ["chmod 644 $DESTDIR/usr/lib/libjemalloc_pic.a"]
|
||||
skip_tests = true
|
||||
no-delete-static = true
|
||||
|
||||
[dependencies]
|
||||
optional = ["perl"]
|
||||
runtime = [
|
||||
"glibc",
|
||||
"libunwind",
|
||||
"libcxx",
|
||||
]
|
||||
|
||||
[[manual_sources]]
|
||||
file = "jemalloc-0001-default-page-size-on-Aarch64.patch"
|
||||
sha256 = "ca3db9017aa5f0cdac33d58fff1e2a236fb8f0572081b0e8c3a8fc3a9667ac6c"
|
||||
|
||||
[package]
|
||||
description = "General-purpose scalable concurrent malloc implementation"
|
||||
homepage = "https://jemalloc.net/"
|
||||
license = "BSD-2-Clause"
|
||||
name = "jemalloc"
|
||||
version = "5.3.0"
|
||||
|
||||
[[source]]
|
||||
extract_dir = "$name-$version"
|
||||
patches = ["jemalloc-0001-default-page-size-on-Aarch64.patch"]
|
||||
post_extract = ["autoconf"]
|
||||
sha256 = "2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa"
|
||||
url = "https://github.com/jemalloc/jemalloc/releases/download/$version/jemalloc-$version.tar.bz2"
|
||||
Reference in New Issue
Block a user