glibc/malloc
Florian Weimer 29a4db291b malloc: Use __libc_initial to detect an inner libc
The secondary/non-primary/inner libc (loaded via dlmopen, LD_AUDIT,
static dlopen) must not use sbrk to allocate member because that would
interfere with allocations in the outer libc.  On Linux, this does not
matter because sbrk itself was changed to fail in secondary libcs.

 _dl_addr occasionally shows up in profiles, but had to be used before
because __libc_multiple_libs was unreliable.  So this change achieves
a slight reduction in startup time.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2020-12-16 15:13:40 +01:00
..
Depend
Makefile Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
Versions Update mallinfo2 ABI, and test 2020-09-17 18:49:30 -04:00
alloc_buffer_alloc_array.c
alloc_buffer_allocate.c
alloc_buffer_copy_bytes.c
alloc_buffer_copy_string.c
alloc_buffer_create_failure.c
arena.c malloc: Use __libc_initial to detect an inner libc 2020-12-16 15:13:40 +01:00
dynarray-skeleton.c
dynarray.h
dynarray_at_failure.c
dynarray_emplace_enlarge.c
dynarray_finalize.c
dynarray_resize.c
dynarray_resize_clear.c
hooks.c
malloc-hooks.h
malloc-internal.h
malloc.c malloc: Use __libc_initial to detect an inner libc 2020-12-16 15:13:40 +01:00
malloc.h malloc: Fix mallinfo deprecation declaration 2020-08-31 14:22:06 -03:00
mallocbug.c
mcheck-init.c
mcheck.c
mcheck.h
memusage.c
memusage.sh
memusagestat.c
morecore.c
mtrace.c
mtrace.pl
obstack.c
obstack.h
reallocarray.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
scratch_buffer_grow.c
scratch_buffer_grow_preserve.c
scratch_buffer_set_array_size.c
set-freeres.c nsswitch: use new internal API (core) 2020-12-04 17:15:53 -05:00
thread-freeres.c Remove --enable-obsolete-rpc configure flag 2020-07-13 19:36:35 +02:00
tst-alloc_buffer.c
tst-calloc.c
tst-dynarray-at-fail.c
tst-dynarray-fail.c
tst-dynarray-shared.h
tst-dynarray.c
tst-interpose-aux-nothread.c
tst-interpose-aux-thread.c
tst-interpose-aux.c
tst-interpose-aux.h
tst-interpose-nothread.c
tst-interpose-skeleton.c
tst-interpose-static-nothread.c
tst-interpose-static-thread.c
tst-interpose-thread.c
tst-mallinfo2.c Update mallinfo2 ABI, and test 2020-09-17 18:49:30 -04:00
tst-malloc-backtrace.c
tst-malloc-fork-deadlock.c
tst-malloc-stats-cancellation.c
tst-malloc-tcache-leak.c malloc: Fix mallinfo deprecation declaration 2020-08-31 14:22:06 -03:00
tst-malloc-thread-exit.c
tst-malloc-thread-fail.c
tst-malloc-too-large.c
tst-malloc-usable-static-tunables.c
tst-malloc-usable-static.c
tst-malloc-usable-tunables.c
tst-malloc-usable.c
tst-malloc.c
tst-malloc_info.c
tst-mallocfork.c
tst-mallocfork2.c
tst-mallocstate.c
tst-mallopt.c
tst-mcheck.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh
tst-mxfast.c malloc: Fix mallinfo deprecation declaration 2020-08-31 14:22:06 -03:00
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc-fortify.c
tst-pvalloc.c
tst-realloc.c
tst-reallocarray.c
tst-safe-linking.c
tst-scratch_buffer.c
tst-tcfree1.c
tst-tcfree2.c tst-tcfree2: adjust coding style. 2020-10-30 14:47:29 -04:00
tst-tcfree3.c
tst-trim1.c
tst-valloc.c