]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Remove bin scanning from memalign (bug 30723)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Aug 2023 17:36:56 +0000 (19:36 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 22 Aug 2023 14:33:35 +0000 (16:33 +0200)
commit2af141bda3cd407abd4bedf615f9e45fe79518e2
tree0e6313a8e5b189e49257a1731391b53630b06648
parent98c293c61f770b6b7a22f89a6ea81b711ecb1952
malloc: Remove bin scanning from memalign (bug 30723)

On the test workload (mpv --cache=yes with VP9 video decoding), the
bin scanning has a very poor success rate (less than 2%).  The tcache
scanning has about 50% success rate, so keep that.

Update comments in malloc/tst-memalign-2 to indicate the purpose
of the tests.  Even with the scanning removed, the additional
merging opportunities since commit 542b1105852568c3ebc712225ae78b
("malloc: Enable merging of remainders in memalign (bug 30723)")
are sufficient to pass the existing large bins test.

Remove leftover variables from _int_free from refactoring in the
same commit.

Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 0dc7fc1cf094406a138e4d1bcf9553e59edcf89d)
NEWS
malloc/malloc.c
malloc/tst-memalign-2.c