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

Reply via email to