mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
9bf248c6c6
* malloc/malloc.c (struct malloc_state): Replace max_fast with flags fields. (global_max_fast): New variable. (set_max_fast): Change to not require arena parameter and to modify global_max_fast. Change all callers. (get_max_fast): New macro. Use this instead of directly accessing now removed max_fast arena member. (have_fastchunks): Use flags instead of max_fast. (clear_fastchunks): Likewise. (set_fastchunks): Likewise. (contiguous): Likewise. (noncontiguous): Likewise. (set_noncontiguous): Likewise. (set_contiguous): Likewise. (malloc_init_state): Explicitly set FASTCHUNKS_BIT. Call set_max_fast only for main arena. * malloc/hooks.c (public_sET_STATe): Adjust set_max_fast use. |
||
---|---|---|
.. | ||
arena.c | ||
Depend | ||
hooks.c | ||
Makefile | ||
malloc.c | ||
malloc.h | ||
mallocbug.c | ||
mcheck-init.c | ||
mcheck.c | ||
mcheck.h | ||
memusage.c | ||
memusage.sh | ||
memusagestat.c | ||
mtrace.c | ||
mtrace.pl | ||
obstack.c | ||
obstack.h | ||
set-freeres.c | ||
thread-freeres.c | ||
tst-calloc.c | ||
tst-malloc.c | ||
tst-mallocfork.c | ||
tst-mallocstate.c | ||
tst-mcheck.c | ||
tst-mtrace.c | ||
tst-mtrace.sh | ||
tst-obstack.c | ||
tst-valloc.c | ||
Versions |