On Wed, 24 May 2023 16:50:55 GMT, Paul Hohensee <p...@openjdk.org> wrote:
>> Please review this addition to com.sun.management.ThreadMXBean that returns >> the total number of bytes allocated on the Java heap since JVM launch by >> both terminated and live threads. >> >> Because this PR adds a new interface method, I've updated the JMM_VERSION to >> 4, but would be happy to update it to 3_1 instead. > > Paul Hohensee has updated the pull request incrementally with one additional > commit since the last revision: > > Merge master A global allocation counter sounds like a potential bottleneck to me and everyone has to pay for it. I'd want to see broad performance measurements for that and hear what the GC folk have to say. A global counter would also need to resurrect Atomic::add(jlong) for all platforms. ------------- PR Comment: https://git.openjdk.org/jdk/pull/13814#issuecomment-1563649176 PR Comment: https://git.openjdk.org/jdk/pull/13814#issuecomment-1563649816