diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-11-12 14:15:14 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-11-12 14:35:06 +0100 |
commit | 1ecba1fafc160ca70f81211b23f688df8676e612 (patch) | |
tree | 9b95d08cc0ca92bc0b85840b928c6dab98482c7f /ChangeLog | |
parent | 278fdabd8c45dc215222facd36febfc3f6f2a95d (diff) | |
download | glibc-1ecba1fafc160ca70f81211b23f688df8676e612.tar glibc-1ecba1fafc160ca70f81211b23f688df8676e612.tar.gz glibc-1ecba1fafc160ca70f81211b23f688df8676e612.tar.bz2 glibc-1ecba1fafc160ca70f81211b23f688df8676e612.zip |
malloc: Convert the unlink macro to the unlink_chunk function
This commit is in preparation of turning the macro into a proper
function. The output arguments of the macro were in fact unused.
Also clean up uses of __builtin_expect.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +2018-11-12 Florian Weimer <fweimer@redhat.com> + + * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this + function. Move after the definition of in_smallbin_range. Do not + use __builtin_expect for paths that lead to a noreturn function. + Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0) + because it is unclear whether this is in fact an unlikely + condition. + (_int_malloc, _int_free): Adjust. + (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd + variables. + * malloc/arena.c (heap_trim): Likewise. + 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use |