RFR: 8269908: Move MemoryService::track_memory_usage call into G1MonitoringScope

Thomas Schatzl tschatzl at openjdk.java.net
Tue Jul 6 12:35:59 UTC 2021

Hi all,

  can I have reviews for this tiny change that moves the `MemoryService::track_memory_usage()` call into the destructor of `G1MonitoringScope` so that all jstat/mxbeans related reporting is handled by that single place?

Testing: tier1-3



Commit messages:
 - Initial implementation

Changes: https://git.openjdk.java.net/jdk/pull/4687/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4687&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269908
  Stats: 4 lines in 2 files changed: 3 ins; 1 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4687.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4687/head:pull/4687

PR: https://git.openjdk.java.net/jdk/pull/4687

More information about the hotspot-gc-dev mailing list