]> 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)
committerArjun Shankar <ashankar@redhat.com>
Thu, 31 Oct 2019 15:48:04 +0000 (16:48 +0100)
commitf144981490bd2ab13189d85902ca74beecb307e4
treed261e2dfe2e73c14564f070a8e3ef21af85cee97
parent91d5989356325759503311df67e750b358ef4148
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.

(cherry picked from commit ff12e0fb91b9072800f031cb21fb2651ee7b6251)
malloc/malloc.c