RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

Alan Bateman Alan.Bateman at oracle.com
Thu Aug 29 07:18:49 UTC 2019


On 28/08/2019 23:58, Mandy Chung wrote:
> Hi Paul,
>
> The CSR proposes this method in java.lang.management.ThreadMXBean as a 
> Java SE feature.
>
> Has this been discussed with the GC team to commit measuring current 
> thread's allocated bytes as Java SE feature?   Can this be supported 
> by all JVM implementation?   What is the overhead if this is enabled 
> by default?  Does it need to be disabled?   This metric is from TLAB 
> that might be okay.  This needs advice/discussion with GC experts.
The webrev adds it to jdk.management/com.sun.management.ThreadMXBean so 
I suspect it is a typo in the CSR and the proposal is for it to be 
JDK-specific.

-Alan.



More information about the hotspot-gc-dev mailing list