[RFC 3/*] Remove THREAD_STATS

Siddhesh Poyarekar siddhesh.poyarekar@gmail.com
Tue Dec 31 05:59:00 GMT 2013


On 11 December 2013 17:49, Ondřej Bílka <neleai@seznam.cz> wrote:
> Another macro in malloc is THREAD_STATS to print statistic about locking
> which duplicates malloc probes.
>
> As this looks undocumented could it be removed?
>
>
>         * malloc/arena.c (grow_heap, get_free_list, reused_arena,
>         arena_get2): Remove THREAD_STATS conditionals.
>         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free,
>         __malloc_stats, int): Likewise.

It can be defined during build to print statistics of lock contention,
to demonstrate/verify the efficiency of the per-thread code.  I agree
that it could be removed, but I'd like the opinion of another
maintainer on this.

Siddhesh
-- 
http://siddhesh.in



More information about the Libc-alpha mailing list