This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC][PATCH 1/4] malloc_info: mask out status bits when reporting chunk sizes [BZ #17039]
- From: Ken Milmore <ken dot milmore at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 30 Apr 2018 22:00:03 +0100
- Subject: [RFC][PATCH 1/4] malloc_info: mask out status bits when reporting chunk sizes [BZ #17039]
---
malloc/malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 9614954975..c0f1b26e1e 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5467,7 +5467,7 @@ __malloc_info (int options, FILE *fp)
if (r != NULL)
while (r != bin)
{
- size_t r_size = chunksize_nomask (r);
+ size_t r_size = chunksize (r);
++sizes[NFASTBINS - 1 + i].count;
sizes[NFASTBINS - 1 + i].total += r_size;
sizes[NFASTBINS - 1 + i].from
--
2.11.0