RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread
Alan Bateman
Alan.Bateman at oracle.com
Wed Aug 28 20:21:00 UTC 2019
On 28/08/2019 20:22, Hohensee, Paul wrote:
>
> Please review a performance improvement for
> ThreadMXBean.getThreadAllocatedBytes and the addition of
> getCurrentThreadAllocatedBytes.
>
> JBS issue:https://bugs.openjdk.java.net/browse/JDK-8207266
>
> Webrev:http://cr.openjdk.java.net/~phh/8207266/webrev.00/
>
> CSR:https://bugs.openjdk.java.net/browse/JDK-8230311
>
> Previous email threads:
> https://mail.openjdk.java.net/pipermail/serviceability-dev/2018-July/024441.html
> https://mail.openjdk.java.net/pipermail/serviceability-dev/2018-August/024763.html
>
> The CSR is for adding ThreadMXBean.getCurrentThreadAllocatedBytes. I’d
> be great for someone to review it.
>
I suspect the new method needs to be specified to be for the local
management case only, and it might able to useful to specify it to be
the equivalent of getThreadAllocatedBytes(Thread.currentThread().getId()).
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190828/8590fcf4/attachment-0001.html>
More information about the serviceability-dev
mailing list