From 9bf248c6c6290a2a8a729f10f1d94258868a0650 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Oct 2005 20:18:07 +0000 Subject: Correctly implement M_MXFAST. * 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. --- ChangeLog | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 275603d307..19c3f47be9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +2005-10-12 Ulrich Drepper + + Correctly implement M_MXFAST. + * 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. + 2005-10-10 Daniel Jacobowitz * sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro. -- cgit v1.2.3