glibc/include
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
..
arpa resolv: Add DNS packet parsing helpers geared towards wire format 2022-09-13 12:56:24 +02:00
bits Apply asm redirections in wchar.h before first use 2022-08-31 09:03:41 +02:00
gnu Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
net
netinet
programs Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
protocols
rpc
rpcsvc
sys malloc: Use __get_nprocs on arena_get2 (BZ 30945) 2024-02-12 10:01:23 -03:00
aio.h
aliases.h
alloc_buffer.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
alloca.h
allocate_once.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ar.h
argp-fmtstream.h
argp.h
argz.h
array_length.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
assert.h
atomic_wide_counter.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
atomic.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
byteswap.h
clone_internal.h
complex.h
cpio.h
crypt.h
ctype.h
des.h
dirent.h
dlfcn.h elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
dso_handle.h
elf.h
endian.h
envz.h
err.h
errno.h
error.h
execinfo.h
fcntl.h
features-time64.h
features.h Prepare for glibc 2.36 release. 2022-07-29 17:59:01 -04:00
fenv.h
file_change_detection.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
filename.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
float.h
fmtmsg.h
fnmatch.h
fpu_control.h
fstab.h
fts.h
ftw.h
gconv.h
getopt_int.h
getopt.h
glob.h
gmp.h
gnu-versions.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
grp-merge.h
grp.h
gshadow.h
iconv.h
idx.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ifaddrs.h
ifreq.h
ifunc-impl-list.h Add bounds check to __libc_ifunc_impl_list 2022-06-10 17:13:29 +01:00
inline-hashtab.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
intprops.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
inttypes.h
langinfo.h
lastlog.h
libc-diag.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
libc-internal.h elf: Remove __libc_init_secure 2022-04-19 15:52:27 -07:00
libc-pointer-arith.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
libc-symbols.h libc-symbols.h: remove unused macros 2022-07-04 21:15:51 -07:00
libgen.h
libintl.h
limits.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
link.h Revert "elf: Move l_init_called_next to old place of l_text_end in link map" 2023-10-19 09:29:42 +02:00
list_t.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
list.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locale.h
loop_unroll.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
malloc.h Simplify __malloc_initialized 2021-07-22 18:38:04 +05:30
math-narrow-eval.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
math.h Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
mcheck.h mcheck: Wean away from malloc hooks [BZ #23489] 2021-07-22 18:38:02 +05:30
memory.h
mntent.h
monetary.h
mqueue.h
netdb.h
netgroup.h
nl_types.h
nss_dns.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nss_files.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nss.h
nsswitch.h
obstack.h
plural-exp.h
poll.h
printf.h stdio-common: Move union printf_arg int <printf.h> 2022-05-24 08:03:11 +02:00
pthread.h
pty.h
pwd.h
random-bits.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
re_comp.h
regex.h regex: copy back from Gnulib 2021-09-21 08:00:44 -07:00
regexp.h
register-atfork.h Fix deadlock when pthread_atfork handler calls pthread_atfork or dlclose 2022-05-25 11:27:31 +02:00
resolv.h resolv: Add internal __res_binary_hnok function 2022-09-13 12:56:24 +02:00
rounding-mode.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
rtld-malloc.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sched.h
scratch_buffer.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
search.h
set-hooks.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
setjmp.h setjmp: Replace jmp_buf-macros.h with jmp_buf-macros.sym 2021-11-22 13:43:22 -03:00
sgtty.h
shadow.h
shlib-compat.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
shm-directory.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
signal.h stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c 2022-05-13 10:54:41 -03:00
spawn.h
stab.h
stackinfo.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
stap-probe.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
stdc-predef.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
stdint.h
stdio_ext.h
stdio.h stdio: Remove the usage of $(fno-unit-at-a-time) for errlist.c 2022-05-13 10:54:41 -03:00
stdlib.h arc4random: simplify design for better safety 2022-07-27 08:58:27 -03:00
string.h String: Add hidden defs for __memcmpeq() to enable internal usage 2021-10-26 16:51:29 -05:00
strings.h
struct___timeb64.h
struct___timespec64.h
struct___timeval64.h
stubs-prologue.h
syscall.h
sysexits.h
syslog.h
tar.h
termios.h
tgmath.h
time.h clock_settime/clock_gettime: Use __nonnull to avoid null pointer 2022-05-05 17:48:04 +05:30
ttyent.h
uchar.h
ucontext.h
ulimit.h
unistd.h elf: Remove __libc_init_secure 2022-04-19 15:52:27 -07:00
utime.h
utmp.h
values.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
verify.h
wait.h
wchar.h wcrtomb: Make behavior POSIX compliant 2022-05-13 19:15:46 +05:30
wctype.h
wordexp.h