public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17039] New: malloc_info should use chunksize() for normal bins stats too
@ 2014-06-08  9:06 jipan.yang at gmail dot com
  2014-06-08 20:02 ` [Bug libc/17039] " jipan.yang at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jipan.yang at gmail dot com @ 2014-06-08  9:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17039

            Bug ID: 17039
           Summary: malloc_info should use chunksize() for normal bins
                    stats too
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jipan.yang at gmail dot com
                CC: drepper.fsp at gmail dot com

Fast bin is using  "size_t thissize = chunksize (p);".  
Using r->size directly gives wrong total and avail size data.

       if (r != NULL)
          while (r != bin)
            {
              ++sizes[NFASTBINS - 1 + i].count;
              sizes[NFASTBINS - 1 + i].total += r->size;
              sizes[NFASTBINS - 1 + i].from
                = MIN (sizes[NFASTBINS - 1 + i].from, r->size);
              sizes[NFASTBINS - 1 + i].to = MAX (sizes[NFASTBINS - 1 + i].to,
                                                 r->size);

              r = r->fd;
            }

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/17039] malloc_info should use chunksize() for normal bins stats too
  2014-06-08  9:06 [Bug libc/17039] New: malloc_info should use chunksize() for normal bins stats too jipan.yang at gmail dot com
@ 2014-06-08 20:02 ` jipan.yang at gmail dot com
  2014-06-12 19:03 ` fweimer at redhat dot com
  2014-06-17 17:35 ` [Bug malloc/17039] " jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jipan.yang at gmail dot com @ 2014-06-08 20:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17039

--- Comment #1 from Jipan Yang <jipan.yang at gmail dot com> ---
Probably it'll be good to have top chunk data shown for each arena. Not sure
about last remainder since it is already in the unsorted bin.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/17039] malloc_info should use chunksize() for normal bins stats too
  2014-06-08  9:06 [Bug libc/17039] New: malloc_info should use chunksize() for normal bins stats too jipan.yang at gmail dot com
  2014-06-08 20:02 ` [Bug libc/17039] " jipan.yang at gmail dot com
@ 2014-06-12 19:03 ` fweimer at redhat dot com
  2014-06-17 17:35 ` [Bug malloc/17039] " jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17039

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug malloc/17039] malloc_info should use chunksize() for normal bins stats too
  2014-06-08  9:06 [Bug libc/17039] New: malloc_info should use chunksize() for normal bins stats too jipan.yang at gmail dot com
  2014-06-08 20:02 ` [Bug libc/17039] " jipan.yang at gmail dot com
  2014-06-12 19:03 ` fweimer at redhat dot com
@ 2014-06-17 17:35 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-06-17 17:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17039

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |malloc

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-17 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-08  9:06 [Bug libc/17039] New: malloc_info should use chunksize() for normal bins stats too jipan.yang at gmail dot com
2014-06-08 20:02 ` [Bug libc/17039] " jipan.yang at gmail dot com
2014-06-12 19:03 ` fweimer at redhat dot com
2014-06-17 17:35 ` [Bug malloc/17039] " jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).