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

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

    XMLWordPrintable

    Details

      Backports

        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:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: