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

[REDO] JDK-8207266 ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: core-svc
    • Labels:
      None

      Description

      JDK-8207266 added a new method named getCurrentThreadAllocatedBytes to the com.sun.management.ThreadMXBean interface, but did not provide a default implementation. Many tests implement this interface and thus fail to compile. A fix is to provide a default implementation that throws, vis.

      public default long getCurrentThreadAllocatedBytes() {
          throw new UnsupportedOperationException();
      }

      The failing tests should be updated to implement getCurrentThreadAllocatedBytes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                phh Paul Hohensee
                Reporter:
                phh Paul Hohensee
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: