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

MemoryPoolMXBeans for different code heaps should contain 'Code heap' in their names

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b35
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Before segmented code cache was implemented, there was only one MemoryPoolMXBean corresponding to code cache, whose name was 'Code heap'.
        Now if SegmentedCodeCache is turned on, then there are three mx beans corresponding to different segments, but their names don't include 'Code heap' string:

        w/o segmented code cache:
        jdk/bin/java -XX:-SegmentedCodeCache Test
        Code heap
        ...

        w/ segmented code cache:
        jdk/bin/java -XX:+SegmentedCodeCache Test
        non-methods
        profiled nmethods
        non-profiled nmethods
        ...

        I believe that names returned by these beans should contain 'Code heap', because it will make beans naming consistent for both segmented and non-segmented code cache and it will be easier to understand what kind of data is stored in memory regions represented by such beans.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                thartmann Tobias Hartmann
                Reporter:
                fzhinkin Filipp Zhinkin
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: