This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] malloc: Add missing arena lock in malloc_info [BZ #22408]
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org, DJ Delorie <dj at redhat dot com>
- Date: Tue, 14 Nov 2017 15:30:43 +0100
- Subject: Re: [PATCH] malloc: Add missing arena lock in malloc_info [BZ #22408]
- Authentication-results: sourceware.org; auth=none
- References: <20171109105142.94C25439942E9@oldenburg.str.redhat.com>
On 11/09/2017 11:51 AM, Florian Weimer wrote:
Also count all heaps in an arena, not just the top-most one.
2017-11-09 Florian Weimer <fweimer@redhat.com>
[BZ #22408]
* malloc/malloc.c (__malloc_info): Calculate arena heap statistics
under the per-arena lock. Count all heaps, not just the top one.
* malloc/Makefile (tests): Add tst-malloc_info.
(tst-malloc_info): Link with libpthread.
* malloc/tst-malloc_info.c: New file.
Ping?
https://patchwork.sourceware.org/patch/24179/
(I fixed the subject line.)
Thanks,
Florian