From a8c8280053f8cc26defb1148e7a8f9534591642f Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Tue, 31 May 2022 10:40:20 +0800 Subject: [PATCH 1/2] add loongarch64 support --- ...jemalloc-5.2.1-add-loongarch-support.patch | 26 +++++++++++++++++++ jemalloc.spec | 7 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-jemalloc-5.2.1-add-loongarch-support.patch diff --git a/0001-jemalloc-5.2.1-add-loongarch-support.patch b/0001-jemalloc-5.2.1-add-loongarch-support.patch new file mode 100644 index 0000000..a753f00 --- /dev/null +++ b/0001-jemalloc-5.2.1-add-loongarch-support.patch @@ -0,0 +1,26 @@ +From c542703f06759de8982e37d8b3799a81a2fec60b Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Wed, 25 May 2022 01:47:26 +0000 +Subject: [PATCH] 389-ds-base 1.4.3.20 add loongarch support + +--- + include/jemalloc/internal/quantum.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/jemalloc/internal/quantum.h b/include/jemalloc/internal/quantum.h +index 821086e..9428a34 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -61,6 +61,9 @@ + # ifdef __le32__ + # define LG_QUANTUM 4 + # endif ++# ifdef __loongarch__ ++# define LG_QUANTUM 4 ++# endif + # ifndef LG_QUANTUM + # error "Unknown minimum alignment for architecture; specify via " + "--with-lg-quantum" +-- +2.33.0 + diff --git a/jemalloc.spec b/jemalloc.spec index 8fab9f2..f8b82db 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -12,7 +12,7 @@ Name: jemalloc Version: 5.2.1 -Release: 1 +Release: 2 Summary: General-purpose scalable concurrent malloc implementation License: BSD URL: http://www.canonware.com/jemalloc/ @@ -21,6 +21,8 @@ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version} Patch1: backport-Jemalloc-5.2.1-patch-1-fix-large-bin-index-accessed-through-cache-bin-descriptor.patch Patch2: backport-Jemalloc-5.2.1-patch-2-fix-undefined-behavior-in-hash.patch Patch3: backport-Jemalloc-5.2.1-patch-3-fix-tcaches-mutex-pre-post-fork-handling.patch +Patch4: 0001-jemalloc-5.2.1-add-loongarch-support.patch + BuildRequires: libxslt perl-generators gcc %description @@ -82,6 +84,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Thu May 31 2022 Huang Yang - 5.2.1-2 +- add loongarch64 support + * Thu Dec 30 2021 xigaoxinyan - 5.2.1-1 - Update jemlloc -- Gitee From e26172cd34e5882102725dec69935fbe70a8925c Mon Sep 17 00:00:00 2001 From: streamlet_hy Date: Tue, 31 May 2022 02:52:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9changelog=E4=B8=AD?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jemalloc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jemalloc.spec b/jemalloc.spec index f8b82db..bb22023 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -84,7 +84,7 @@ make check %{_mandir}/man3/jemalloc.3* %changelog -* Thu May 31 2022 Huang Yang - 5.2.1-2 +* Tue May 31 2022 Huang Yang - 5.2.1-2 - add loongarch64 support * Thu Dec 30 2021 xigaoxinyan - 5.2.1-1 -- Gitee