RFR: 8233443: G1 DetailedUsage class names overly generic for global namespace

Lei Zaakjyu duke at openjdk.org
Fri Dec 22 15:53:59 UTC 2023


Description:
The classes DetailedUsage and DetailedUsageClosure are defined in G1HeapTransitions.cpp. These class names seem a bit generic for the global namespace. They could be G1-prefixed, but I think better would be to make them nested classes of G1HeapTransition. Just declare them in that class, with the definitions still in the .cpp file.

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

Commit messages:
 - make 'DetailedUsage*' nested

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

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


More information about the hotspot-gc-dev mailing list