malloc: use __get_nprocs replace __get_nprocs_sched
This commit is contained in:
parent
5fa367352a
commit
2c74ab717a
@ -65,7 +65,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.35
|
Version: 2.35
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
License: %{all_license}
|
License: %{all_license}
|
||||||
URL: http://www.gnu.org/software/glibc/
|
URL: http://www.gnu.org/software/glibc/
|
||||||
@ -94,6 +94,7 @@ Source8: testsuite_whitelist.%{_target_cpu}
|
|||||||
#Patch9009: 0008-add-pause_nocancel_2_17.patch
|
#Patch9009: 0008-add-pause_nocancel_2_17.patch
|
||||||
#Patch9010: 0009-add-unwind-with-longjmp.patch
|
#Patch9010: 0009-add-unwind-with-longjmp.patch
|
||||||
Patch9011: use-region-to-instead-of-country-for-extract-timezon.patch
|
Patch9011: use-region-to-instead-of-country-for-extract-timezon.patch
|
||||||
|
Patch9012: malloc-use-__get_nprocs-replace-__get_nprocs_sched.patch
|
||||||
|
|
||||||
Obsoletes: nscd < 2.35
|
Obsoletes: nscd < 2.35
|
||||||
Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)
|
Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)
|
||||||
@ -1164,6 +1165,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 12 2022 Qingqing Li <liqingqing3@huawei.com> - 2.35-6
|
||||||
|
- malloc: use __get_nprocs replace __get_nprocs_sched.
|
||||||
|
|
||||||
* Wed Mar 2 2022 Qingqing Li <liqingqing3@huawei.com> - 2.35-5
|
* Wed Mar 2 2022 Qingqing Li <liqingqing3@huawei.com> - 2.35-5
|
||||||
- add chrpath to build requires for removing RPATH/RUNPATH
|
- add chrpath to build requires for removing RPATH/RUNPATH
|
||||||
|
|
||||||
|
|||||||
25
malloc-use-__get_nprocs-replace-__get_nprocs_sched.patch
Normal file
25
malloc-use-__get_nprocs-replace-__get_nprocs_sched.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From f5545d74d6dc4d5036bee6a91cda14a51e2a0676 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yang Yanchao <yangyanchao6@huawei.com>
|
||||||
|
Date: Sat, 12 Mar 2022 15:30:17 +0800
|
||||||
|
Subject: [PATCH] malloc: use __get_nprocs replace __get_nprocs_sched.
|
||||||
|
|
||||||
|
---
|
||||||
|
malloc/arena.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/malloc/arena.c b/malloc/arena.c
|
||||||
|
index f1f0af86..66748463 100644
|
||||||
|
--- a/malloc/arena.c
|
||||||
|
+++ b/malloc/arena.c
|
||||||
|
@@ -879,7 +879,7 @@ arena_get2 (size_t size, mstate avoid_arena)
|
||||||
|
narenas_limit = mp_.arena_max;
|
||||||
|
else if (narenas > mp_.arena_test)
|
||||||
|
{
|
||||||
|
- int n = __get_nprocs_sched ();
|
||||||
|
+ int n = __get_nprocs ();
|
||||||
|
|
||||||
|
if (n >= 1)
|
||||||
|
narenas_limit = NARENAS_FROM_NCORES (n);
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user