Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c766f9539e
!42 【轻量级PR】Replaces declaration of help subpackage with the 'package_help' marco.
From: @jiang-wanfeng 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2025-02-21 07:42:58 +00:00
郭超凡
7bdae306b6 Replaces declaration of help subpackage with the 'package_help' marco. 2024-08-21 01:29:57 +08:00
openeuler-ci-bot
e00a4f03c3
!37 [sync] PR-35: Fix an incorrect assertion
From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-12-29 03:06:03 +00:00
fandehui
326d391a85 Fix an incorrect assertion.
When configured with --with-lg-page, it's possible for the configured page size
to be greater than the system page size, in which case the page address may only
be aligned with the system page size.

Signed-off-by: fandehui <fandehui@xfusion.com>
(cherry picked from commit 9d3aff3ec1909742ad3259a3b5ff2e50890cb844)
2023-12-29 10:33:58 +08:00
openeuler-ci-bot
94e4b79cd4 !3 Add Requires jemalloc-help into jemalloc
From: @lei_ju
Reviewed-by: @hht8,@small_leek
Signed-off-by: @small_leek
2020-11-06 14:10:49 +08:00
lei_ju
4dc1b1e5e2 Add Requires jemalloc-help into jemalloc 2020-11-06 11:18:53 +08:00
openeuler-ci-bot
90d6db5e6b !1 Package init
Merge pull request !1 from yeah_wang/apple
2019-12-13 18:34:50 +08:00
yeah_wang
7b71813dc0 Package init 2019-12-13 18:21:41 +08:00
yeah_wang
dd879c4d40 删除文件 README.md 2019-12-13 18:11:28 +08:00
yeah_wang
fb46fbda74 删除文件 README.en.md 2019-12-13 18:11:21 +08:00
5 changed files with 120 additions and 75 deletions

View File

@ -0,0 +1,28 @@
From e8a63b87c36ac814272d73b503658431d2000055 Mon Sep 17 00:00:00 2001
From: Qi Wang <interwq@gwu.edu>
Date: Wed, 9 May 2018 15:03:38 -0700
Subject: [PATCH] Fix an incorrect assertion.
When configured with --with-lg-page, it's possible for the configured page size
to be greater than the system page size, in which case the page address may only
be aligned with the system page size.
---
src/pages.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages.c b/src/pages.c
index 26002692..cc967fcf 100644
--- a/src/pages.c
+++ b/src/pages.c
@@ -261,7 +261,7 @@ pages_decommit(void *addr, size_t size) {
bool
pages_purge_lazy(void *addr, size_t size) {
- assert(PAGE_ADDR2BASE(addr) == addr);
+ assert(ALIGNMENT_ADDR2BASE(addr, os_page) == addr);
assert(PAGE_CEILING(size) == size);
if (!pages_can_purge_lazy) {
--
2.27.0

View File

@ -1,36 +0,0 @@
# jemalloc
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# jemalloc
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
jemalloc-5.1.0.tar.bz2 Normal file

Binary file not shown.

92
jemalloc.spec Normal file
View File

@ -0,0 +1,92 @@
%ifarch x86_64
%define lg_page --with-lg-page=12
%endif
%ifarch aarch64
%define lg_page --with-lg-page=16
%endif
%ifarch aarch64
%define disable_thp --disable-thp
%endif
Name: jemalloc
Version: 5.1.0
Release: 6
Summary: General-purpose scalable concurrent malloc implementation
License: BSD
URL: http://www.canonware.com/jemalloc/
Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
Patch0: Fix-an-incorrect-assertion.patch
BuildRequires: libxslt perl-generators
Requires: %{name}-help = %{version}-%{release}
%description
Implemented by malloc (3), is an independent implementation of jemalloc.
%package devel
Summary: Devel files for jemalloc
Requires: %{name} = %{version}-%{release}
%description devel
The devel contains libraries and header files for use in jemalloc applications.
%package_help
%prep
%autosetup -p1
%build
export LDFLAGS="%{?__global_ldflags} -lrt"
getconf PAGESIZE
uname -a
%configure %{?disable_thp} %{?lg_page}
%make_build
%check
%if %{?_with_check:1}%{!?_with_check:0}
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
make check
%endif
%install
%make_install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc COPYING
%{_libdir}/libjemalloc.so.*
%{_bindir}/jemalloc.sh
%{_bindir}/jemalloc-config
%{_libdir}/pkgconfig/jemalloc.pc
%files devel
%{_includedir}/jemalloc
%{_bindir}/jeprof
%{_libdir}/libjemalloc.so
%exclude %{_libdir}/libjemalloc.a
%exclude %{_libdir}/libjemalloc_pic.a
%exclude %{_datadir}/doc/%{name}/jemalloc.html
%files help
%doc README VERSION doc/jemalloc.html
%{_mandir}/man3/jemalloc.3*
%changelog
* Tue Aug 20 2024 guochaofan <guochaofan@cqsoftware.com.cn> - 5.1.0-6
- Replaces declaration of help subpackage with the 'package_help' marco.
* Thu Dec 28 2023 fandehui <fandehui@xfusion.com> - 5.1.0-5
- Fix an incorrect assertion.
* Fri Nov 06 2020 leiju<leiju4@huawei.com> - 5.1.0-4
- Add Requires jemalloc-help into jemalloc
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 5.1.0-3
- Package init