(struct malloc_state): Replace max_fast with flags fields.
authordrepper <drepper>
Wed, 12 Oct 2005 20:16:34 +0000 (20:16 +0000)
committerdrepper <drepper>
Wed, 12 Oct 2005 20:16:34 +0000 (20:16 +0000)
commit7da4c86a1c2ab402e5ab715d09b45380e38fcf28
tree0eecc85376f7ec957827ed36a3faac961d442231
parentee7cde1932cd7c6a0d26a2c239577b6fab5b9a94
(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/malloc.c