]> git.ipfire.org Git - thirdparty/glibc.git/commit
Base max_fast on alignment, not width, of bins (Bug 24903)
authorDJ Delorie <dj@redhat.com>
Wed, 30 Oct 2019 22:03:14 +0000 (18:03 -0400)
committerDJ Delorie <dj@redhat.com>
Thu, 31 Oct 2019 02:59:11 +0000 (22:59 -0400)
commitff12e0fb91b9072800f031cb21fb2651ee7b6251
tree37a7d39ba65a800011cdef4ce0bfffe1b97871a1
parent62193c4a3af9c1e15c039b323f45ccd2fddc119f
Base max_fast on alignment, not width, of bins (Bug 24903)

set_max_fast sets the "impossibly small" value based on,
eventually, MALLOC_ALIGNMENT.  The comparisons for the smallest
chunk used is, eventually, MIN_CHUNK_SIZE.  Note that i386
is the only platform where these are the same, so a smallest
chunk *would* be put in a no-fastbins fastbin.

This change calculates the "impossibly small" value
based on MIN_CHUNK_SIZE instead, so that we can know it will
always be impossibly small.
malloc/malloc.c