> 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 20 additional commits since the last revision: - 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() - 8304074: update jmm_GetTotalAllocatedBytes comment - 8304074: Use __atomic_add_fetch rather than TBD assembler stub - 8304074: getTotalThreadAllocatedBytes name change, increment exited_allocated_bytes in ThreadService::remove_thread, add 64-bit atomic add for linux/bsd_x86, stub out for other platforms - Implement 32-bit linux Atomic::add() - Implement 32-bit linux Atomic::add() - Implement 32-bit linux Atomic::add() - ... and 10 more: https://git.openjdk.org/jdk/compare/e38628f9...ab3b9080 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/13814/files - new: https://git.openjdk.org/jdk/pull/13814/files/4ce0ede7..ab3b9080 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=15 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13814&range=14-15 Stats: 108483 lines in 1798 files changed: 86806 ins; 8865 del; 12812 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