glibc/sysdeps
Adhemerval Zanella 3fcb410465 malloc: Use __get_nprocs on arena_get2 (BZ 30945)
This restore the 2.33 semantic for arena_get2.  It was changed by
11a02b035b to avoid arena_get2 call malloc (back when __get_nproc
was refactored to use an scratch_buffer - 903bc7dcc2).  The
__get_nproc was refactored over then and now it also avoid to call
malloc.

The 11a02b035b did not take in consideration any performance
implication, which should have been discussed properly.  The
__get_nprocs_sched is still used as a fallback mechanism if procfs
and sysfs is not acessible.

Checked on x86_64-linux-gnu.
Reviewed-by: DJ Delorie <dj@redhat.com>

(cherry picked from commit 472894d2cf)
2024-02-12 10:20:44 -03:00
..
aarch64 elf: Fix rtld-audit trampoline for aarch64 2022-11-22 10:34:14 -03:00
alpha
arc
arm
csky
generic elf: Fix 64 time_t support for installed statically binaries 2023-02-08 09:32:42 +01:00
gnu
hppa hppa: Remove _dl_skip_args usage (BZ# 29165) 2022-06-10 09:13:54 -03:00
htl
hurd
i386
ia64
ieee754 s_sincosf.h: Change pio4 type to float [BZ #28713] 2023-01-11 15:29:37 +01:00
m68k
mach malloc: Use __get_nprocs on arena_get2 (BZ 30945) 2024-02-12 10:20:44 -03:00
microblaze
mips
nios2 nios2: Remove _dl_skip_args usage (BZ# 29187) 2022-06-10 09:15:00 -03:00
nptl nptl: Add backoff mechanism to spinlock loop 2022-09-28 07:34:53 -07:00
posix Fix leak in getaddrinfo introduced by the fix for CVE-2023-4806 [BZ #30843] 2023-09-26 15:38:49 -04:00
powerpc elf: Drop elf/tls-macros.h in favor of __thread and tls_model attributes [BZ #28152] [BZ #28205] 2023-01-10 19:09:21 +01:00
pthread nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214) 2022-06-08 17:15:08 -03:00
riscv
s390 S390: Enable static PIE 2022-05-19 17:15:57 +02:00
sh
sparc
unix malloc: Use __get_nprocs on arena_get2 (BZ 30945) 2024-02-12 10:20:44 -03:00
wordsize-32
wordsize-64
x86 x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745] 2023-09-05 17:17:52 -05:00
x86_64 x86_64: Optimize ffsll function code size. 2024-01-31 18:54:26 -08:00