RFR (M): 8231209: [REDO] ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

Mandy Chung mandy.chung at oracle.com
Thu Sep 19 22:00:35 UTC 2019



On 9/19/19 9:52 AM, Hohensee, Paul wrote:
> More formally,
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8231209
> Webrev: http://cr.openjdk.java.net/~phh/8231209/webrev.00/
>

The new metric you added is an attribute (not an operation).  So the 
change in ServerThreadMXBeanNew should call getLongAttribute inherited 
from ServerMXBean superclass.

The change to com.sun.management.ThreadMXBean is fine.  The CSR needs an 
amendment.   I am asking Joe [2] for his recommendation whether you 
should reuse JDK-8230311 or file a new CSR.

Mandy
[1] 
test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/server/ServerMXBean.java
[2] 
https://bugs.openjdk.java.net/browse/JDK-8230311?focusedCommentId=14290493&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14290493


More information about the serviceability-dev mailing list