RFR: 8352762: Use EXACTFMT instead of expanded version where applicable

Joel Sikström jsikstro at openjdk.org
Tue Mar 25 14:06:46 UTC 2025


[JDK-8310233](https://bugs.openjdk.org/browse/JDK-8310233) introduced the EXACTFMT macro, which is a shorthand for printing exact values using methods defined in globalDefinitions.hpp. There are currently 20 places in HotSpot which uses the expanded version of the macro, along with the "trace_page_size_params" macro that is defined and used in os.cpp.

I have replaced places that use the expanded macro(s) with EXACTFMT + EXACTFMTARGS, and also removed trace_page_size_params from os.cpp, which was essentially a redefnition of EXACTFMTARGS.

Testing: GHA, tiers 1-4

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

Commit messages:
 - 8352762: Use EXACTFMT instead of expanded version where applicable

Changes: https://git.openjdk.org/jdk/pull/24228/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24228&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352762
  Stats: 70 lines in 8 files changed: 0 ins; 20 del; 50 mod
  Patch: https://git.openjdk.org/jdk/pull/24228.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24228/head:pull/24228

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


More information about the hotspot-dev mailing list