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

Paul Hohensee phh at openjdk.org
Wed May 17 23:26:14 UTC 2023


> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 29 additional commits since the last revision:

 - 8304074: initialize done and done1 on separate lines
 - Merge branch 'master' into 8304074
 - 8304074: incr_exited_allocated_bytes needs atomic load/store
 - 8304704: _exited_allocated_bytes increment does not have to be atomic
 - Merge branch 'master' into 8304074
 - 8304704: _exited_allocated_bytes increment does not have to be atomic
 - 8304704: In getTotalThreadAllocatedBytes javadoc, 'launched' -> 'started'
 - 8304704: Typos
 - 8304074: fetch_then_add, not fetch_and_add
 - 8304074: Assign to _add_long_func in add_long_bootstrap
 - ... and 19 more: https://git.openjdk.org/jdk/compare/95e39e85...86be9237

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13814/files
  - new: https://git.openjdk.org/jdk/pull/13814/files/3c543e60..86be9237

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=20
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=19-20

  Stats: 7860 lines in 341 files changed: 4624 ins; 989 del; 2247 mod
  Patch: https://git.openjdk.org/jdk/pull/13814.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13814/head:pull/13814

PR: https://git.openjdk.org/jdk/pull/13814


More information about the serviceability-dev mailing list