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 /malloc/arena.c | |
parent | 278fdabd8c45dc215222facd36febfc3f6f2a95d (diff) | |
download | glibc-1ecba1fafc160ca70f81211b23f688df8676e612.zip glibc-1ecba1fafc160ca70f81211b23f688df8676e612.tar.gz glibc-1ecba1fafc160ca70f81211b23f688df8676e612.tar.bz2 |
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 'malloc/arena.c')
-rw-r--r-- | malloc/arena.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index 497ae47..ff8fd5d 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -596,7 +596,7 @@ heap_trim (heap_info *heap, size_t pad) { mstate ar_ptr = heap->ar_ptr; unsigned long pagesz = GLRO (dl_pagesize); - mchunkptr top_chunk = top (ar_ptr), p, bck, fwd; + mchunkptr top_chunk = top (ar_ptr), p; heap_info *prev_heap; long new_size, top_size, top_area, extra, prev_size, misalign; @@ -625,7 +625,7 @@ heap_trim (heap_info *heap, size_t pad) if (!prev_inuse (p)) /* consolidate backward */ { p = prev_chunk (p); - unlink (ar_ptr, p, bck, fwd); + unlink_chunk (ar_ptr, p); } assert (((unsigned long) ((char *) p + new_size) & (pagesz - 1)) == 0); assert (((char *) p + new_size) == ((char *) heap + heap->size)); |