Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8296784

Provide clean mallinfo/mallinfo2 wrapper for Linux glibc platforms

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b25
    • linux

      This is a breakout from JDK-8293114, which is starved for reviews. So I attempt to break up that fix into smaller units which are hopefully easier to review separately.

      We use the glibc-specific mallinfo/mallinfo2 APIs to query libc internals. These are quite important, since they are the only way to get the malloc load and retained size from the glibc allocator. NMT only reports a tiny part of that (only the user-view of whatever hotspot allocated).

      Using these APIs and staying glibc-agnostic requires some twiddling. This patch should provide a wrapper function in os::Linux to hide that twiddling.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: