JMH: Use ThreadMXBean.getTotalThreadAllocatedBytes for -prof gc

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jmh

      JDK 21 comes with a new method that gives the total allocated rate for all the threads, JDK-8304074. JMH -prof gc can use it, when available.

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: