glibc/sysdeps/mach
Adhemerval Zanella 8e99cc76a2 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:01:23 -03:00
..
htl htl: Fix cleaning the reply port 2022-01-22 02:17:19 +01:00
hurd socket: Check lengths before advancing pointer in CMSG_NXTHDR 2022-08-22 16:32:13 +02:00
i386 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
include hurd: break relocation loop between libc.so and lib{mach,hurd}user.so 2020-11-14 00:52:52 +01:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
_strerror.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
adjtime.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
configure configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
configure.ac configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
getloadavg.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsysstats.c malloc: Use __get_nprocs on arena_get2 (BZ 30945) 2024-02-12 10:01:23 -03:00
libc-lock.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
Makefile Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
mprotect.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
msync.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
munmap.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
pagecopy.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
readonly-area.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sched_yield.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sleep.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
strerror_l.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
thread_state.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
usleep.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00