diff --git a/0001-add-new-architecture-loongarch.patch b/0001-add-new-architecture-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..7cd37cc2c9f64a54f4fe720832aeb8e334c360ce --- /dev/null +++ b/0001-add-new-architecture-loongarch.patch @@ -0,0 +1,26 @@ +From 140b3cffced427d6edad621b5b7ed2f19ee81bf2 Mon Sep 17 00:00:00 2001 +From: yangxianzhao +Date: Thu, 9 Jun 2022 09:39:11 +0000 +Subject: [PATCH] -add-new-architecture-loongarch + +--- + 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..b6d2fe5 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -30,6 +30,9 @@ + # ifdef __hppa__ + # define LG_QUANTUM 4 + # endif ++# ifdef __loongarch__ ++# define LG_QUANTUM 4 ++# endif + # ifdef __m68k__ + # define LG_QUANTUM 3 + # endif +-- +2.33.0 + diff --git a/jemalloc.spec b/jemalloc.spec index 8fab9f297efa3c9bbeb488b5a2dbd05219fd0d03..af868891d15db45a781e88993b1eaedac04255ff 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,7 @@ 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-add-new-architecture-loongarch.patch BuildRequires: libxslt perl-generators gcc %description @@ -82,6 +83,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Thu Jun 09 2022 yangxianzhao - 5.2.1-2 +- Add loongarch support + * Thu Dec 30 2021 xigaoxinyan - 5.2.1-1 - Update jemlloc