!37 [sync] PR-35: Fix an incorrect assertion
From: @openeuler-sync-bot Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
e00a4f03c3
28
Fix-an-incorrect-assertion.patch
Normal file
28
Fix-an-incorrect-assertion.patch
Normal 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
|
||||||
|
|
||||||
@ -12,11 +12,12 @@
|
|||||||
|
|
||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
Version: 5.1.0
|
Version: 5.1.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.canonware.com/jemalloc/
|
URL: http://www.canonware.com/jemalloc/
|
||||||
Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
Patch0: Fix-an-incorrect-assertion.patch
|
||||||
|
|
||||||
BuildRequires: libxslt perl-generators
|
BuildRequires: libxslt perl-generators
|
||||||
Requires: %{name}-help = %{version}-%{release}
|
Requires: %{name}-help = %{version}-%{release}
|
||||||
@ -82,6 +83,9 @@ make check
|
|||||||
%{_mandir}/man3/jemalloc.3*
|
%{_mandir}/man3/jemalloc.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Fri Nov 06 2020 leiju<leiju4@huawei.com> - 5.1.0-4
|
||||||
- Add Requires jemalloc-help into jemalloc
|
- Add Requires jemalloc-help into jemalloc
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user