diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-01-18 22:38:32 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-01-18 22:38:32 +0100 |
commit | 71effcea34f7b23e54bc15b42c7a837de91cdfc0 (patch) | |
tree | 2bcd0d22d89aa5d3907f6ac15d4b70d05fcb275b /ChangeLog | |
parent | 562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae (diff) | |
download | glibc-71effcea34f7b23e54bc15b42c7a837de91cdfc0.tar glibc-71effcea34f7b23e54bc15b42c7a837de91cdfc0.tar.gz glibc-71effcea34f7b23e54bc15b42c7a837de91cdfc0.tar.bz2 glibc-71effcea34f7b23e54bc15b42c7a837de91cdfc0.zip |
malloc: Revert fastbins to old-style atomics
Commit 6923f6db1e688dedcf3a6556da76e0bf24a41872 ("malloc: Use current
(C11-style) atomics for fastbin access") caused a substantial
performance regression on POWER and Aarch64, and the old atomics,
while hard to prove correct, seem to work in practice.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +2019-01-18 Florian Weimer <fweimer@redhat.com> + + malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872 + ("malloc: Use current (C11-style) atomics for fastbin access"). + This commit introduces a substantial performance regression on + POWER and Aarch64. + * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove. + (REMOVE_FB): Define. + (_int_malloc): Use it and reindent. + (_int_free): Use CAS loop with + catomic_compare_and_exchange_val_rel. + (malloc_consolidate): Use atomic_exchange_acq. + + 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to |