[PATCH] Replace malloc force_reg by atomic_forced_read.

Will Newton will.newton@linaro.org
Mon Dec 9 15:56:00 GMT 2013


On 9 December 2013 13:46, Ondřej Bílka <neleai@seznam.cz> wrote:
> Hi,
>
> this refactors a malloc a bit, macro force_reg is a duplicate of
> atomic_forced_read so we use it instead.
>
> OK to commit?
>
>         * malloc/malloc.c: (force_reg): Remove.
>         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
>         _mid_memalign, __libc_calloc): replace force_reg by atomic_forced_read.
>         * malloc/arena.c (ptmalloc_init): Likewise.
>         * malloc/hooks.c (top_check): Likewise.
>

This looks ok to me. Should be a capital R in replace in the changelog
entry though and should mention sysmalloc and systrim.

-- 
Will Newton
Toolchain Working Group, Linaro



More information about the Libc-alpha mailing list