RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v19]
Paul Hohensee
phh at openjdk.org
Mon May 15 23:12:52 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 26 additional commits since the last revision:
- 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
- Merge branch 'master' into 8304074
- 8304074: Define FULL_MEM_BARRIER for linux_arm
- 8304074: set _atomic_add_long_entry = ShouldNotCallThisStub()
- ... and 16 more: https://git.openjdk.org/jdk/compare/7f45a6df...effdefc6
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13814/files
- new: https://git.openjdk.org/jdk/pull/13814/files/998a72ad..effdefc6
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=18
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=17-18
Stats: 4747 lines in 164 files changed: 2973 ins; 690 del; 1084 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