RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v5]

David Holmes dholmes at openjdk.org
Mon May 8 02:10:23 UTC 2023


On Fri, 5 May 2023 21:21:28 GMT, Paul Hohensee <phh at openjdk.org> wrote:

> Afaiu, SMR/TLH keeps a terminated thread's TLS accessible, but doesn't stop the termination process.

Incorrect. A thread cannot complete the termination process if it is contained by a TLH - see ` ThreadsSMRSupport::smr_delete` and the call to `wait_until_not_protected`.

But not sure that helps with the zero-else-double accounting problem. Any read of the "total accumulated bytes written to date" value is racing with terminating threads.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13814#discussion_r1186966520


More information about the serviceability-dev mailing list