Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
922f31598c
!46 [sync] PR-39: 【轻量级PR】Replaces declaration of help subpackage with the 'package_help' marco.
From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2025-02-21 07:47:21 +00:00
郭超凡
0ca706b97f Replaces declaration of help subpackage with the 'package_help' marco.
(cherry picked from commit 8272aec8ba59ddc2c9fdad64a0c9cb30cb2261a2)
2025-02-21 14:56:30 +08:00
openeuler-ci-bot
8265e7a09d
!28 Upgrade to 5.3.0
From: @li-long315 
Reviewed-by: @Charlie_li, @small_leek 
Signed-off-by: @small_leek
2023-03-07 03:42:37 +00:00
li-long315
057c047c0f Upgrade to 5.3.0 2023-03-01 11:30:10 +08:00
openeuler-ci-bot
aa519b1e7e
!23 Correct tsd layout graph
From: @meng-wenhua 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-09 11:29:08 +00:00
mengwenhua
7bff39fabf Correct tsd layout graph
Signed-off-by: mengwenhua <mengwenhua@xfusion.com>
2023-01-09 12:26:22 +08:00
openeuler-ci-bot
22b6c9ad5b
!19 add loongarch64 support
From: @dpdwaj 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
2022-12-06 08:03:42 +00:00
doupengda
6ce1f71db1 add loongarch64 support 2022-12-05 10:13:13 +08:00
openeuler-ci-bot
5d7d50e025
!11 License compliance rectification
From: @wang--ge 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-05-11 01:18:29 +00:00
wang--ge
7c07872050 License compliance rectification 2022-05-10 17:21:30 +08:00
6 changed files with 22 additions and 86 deletions

View File

@ -1,19 +0,0 @@
diff -Nur jemalloc-5.2.1/src/arena.c tmp/src/arena.c
--- jemalloc-5.2.1/src/arena.c 2019-08-06 04:02:00.000000000 +0800
+++ tmp/src/arena.c 2021-11-03 10:23:41.243648055 +0800
@@ -199,13 +199,12 @@
malloc_mutex_lock(tsdn, &arena->tcache_ql_mtx);
cache_bin_array_descriptor_t *descriptor;
ql_foreach(descriptor, &arena->cache_bin_array_descriptor_ql, link) {
- szind_t i = 0;
- for (; i < SC_NBINS; i++) {
+ for (szind_t i = 0; i < SC_NBINS; i++) {
cache_bin_t *tbin = &descriptor->bins_small[i];
arena_stats_accum_zu(&astats->tcache_bytes,
tbin->ncached * sz_index2size(i));
}
- for (; i < nhbins; i++) {
+ for (szind_t i = 0; i < nhbins - SC_NBINS; i++) {
cache_bin_t *tbin = &descriptor->bins_large[i];
arena_stats_accum_zu(&astats->tcache_bytes,
tbin->ncached * sz_index2size(i));

View File

@ -1,26 +0,0 @@
diff -Nur jemalloc-5.2.1/include/jemalloc/internal/hash.h tmp/include/jemalloc/internal/hash.h
--- jemalloc-5.2.1/include/jemalloc/internal/hash.h 2019-08-06 04:02:00.000000000 +0800
+++ tmp/include/jemalloc/internal/hash.h 2021-11-16 10:49:41.199628212 +0800
@@ -182,19 +182,19 @@
case 13: k4 ^= tail[12] << 0;
k4 *= c4; k4 = hash_rotl_32(k4, 18); k4 *= c1; h4 ^= k4;
JEMALLOC_FALLTHROUGH
- case 12: k3 ^= tail[11] << 24; JEMALLOC_FALLTHROUGH
+ case 12: k3 ^= (uint32_t) tail[11] << 24; JEMALLOC_FALLTHROUGH
case 11: k3 ^= tail[10] << 16; JEMALLOC_FALLTHROUGH
case 10: k3 ^= tail[ 9] << 8; JEMALLOC_FALLTHROUGH
case 9: k3 ^= tail[ 8] << 0;
k3 *= c3; k3 = hash_rotl_32(k3, 17); k3 *= c4; h3 ^= k3;
JEMALLOC_FALLTHROUGH
- case 8: k2 ^= tail[ 7] << 24; JEMALLOC_FALLTHROUGH
+ case 8: k2 ^= (uint32_t) tail[ 7] << 24; JEMALLOC_FALLTHROUGH
case 7: k2 ^= tail[ 6] << 16; JEMALLOC_FALLTHROUGH
case 6: k2 ^= tail[ 5] << 8; JEMALLOC_FALLTHROUGH
case 5: k2 ^= tail[ 4] << 0;
k2 *= c2; k2 = hash_rotl_32(k2, 16); k2 *= c3; h2 ^= k2;
JEMALLOC_FALLTHROUGH
- case 4: k1 ^= tail[ 3] << 24; JEMALLOC_FALLTHROUGH
+ case 4: k1 ^= (uint32_t) tail[ 3] << 24; JEMALLOC_FALLTHROUGH
case 3: k1 ^= tail[ 2] << 16; JEMALLOC_FALLTHROUGH
case 2: k1 ^= tail[ 1] << 8; JEMALLOC_FALLTHROUGH
case 1: k1 ^= tail[ 0] << 0;

View File

@ -1,28 +0,0 @@
diff -Nur jemalloc-5.2.1/src/tcache.c tmp/src/tcache.c
--- jemalloc-5.2.1/src/tcache.c 2019-08-06 04:02:00.000000000 +0800
+++ tmp/src/tcache.c 2021-11-16 19:12:46.889312051 +0800
@@ -778,21 +778,15 @@
void
tcache_prefork(tsdn_t *tsdn) {
- if (!config_prof && opt_tcache) {
- malloc_mutex_prefork(tsdn, &tcaches_mtx);
- }
+ malloc_mutex_prefork(tsdn, &tcaches_mtx);
}
void
tcache_postfork_parent(tsdn_t *tsdn) {
- if (!config_prof && opt_tcache) {
- malloc_mutex_postfork_parent(tsdn, &tcaches_mtx);
- }
+ malloc_mutex_postfork_parent(tsdn, &tcaches_mtx);
}
void
tcache_postfork_child(tsdn_t *tsdn) {
- if (!config_prof && opt_tcache) {
- malloc_mutex_postfork_child(tsdn, &tcaches_mtx);
- }
+ malloc_mutex_postfork_child(tsdn, &tcaches_mtx);
}

Binary file not shown.

BIN
jemalloc-5.3.0.tar.bz2 Normal file

Binary file not shown.

View File

@ -11,17 +11,15 @@
%endif
Name: jemalloc
Version: 5.2.1
Release: 5
Version: 5.3.0
Release: 2
Summary: General-purpose scalable concurrent malloc implementation
License: BSD
License: BSD-2-Clause
URL: http://www.canonware.com/jemalloc/
Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
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
BuildRequires: libxslt perl-generators gcc
BuildRequires: perl-generators gcc /usr/bin/xsltproc
%description
Implemented by malloc (3), is an independent implementation of jemalloc.
@ -33,14 +31,10 @@ Requires: %{name} = %{version}-%{release}
%description devel
The devel contains libraries and header files for use in jemalloc applications.
%package help
Summary: help for jemalloc.
%description help
The help package contains manual pages and other related files for jemalloc.
%package_help
%prep
%autosetup -p1
%setup -q
%build
export LDFLAGS="%{?__global_ldflags} -lrt"
@ -82,6 +76,21 @@ make check
%{_mandir}/man3/jemalloc.3*
%changelog
* Mon Aug 19 2024 guochaofan <guochaofan@cqsoftware.com.cn> - 5.3.0-2
- Replaces declaration of help subpackage with the 'package_help' marco.
* Wed Mar 01 2023 li-long315 <lilong@kylinos.cn> - 5.3.0-1
- Upgrade to 5.3.0
* Mon Jan 9 2023 mengwenhua <mengwenhua@xfusion.com> - 5.2.1-8
- Correct tsd layout graph
* Tue Nov 15 2022 doupengda <doupengda@loongson.cn> - 5.2.1-7
- add loongarch64 support
* Tue May 10 2022 Ge Wang <wangge@h-partner.com> - 5.2.1-6
- License compliance rectification
* Thu Dec 2 2021 guominghong <guominghong@huawei.com> - 5.2.1-5
- Fix spec check