[jdk17u-dev] RFR: 8291753: Add JFR event for GC CPU Time

Goetz Lindenmaier goetz at openjdk.org
Wed Mar 6 16:15:08 UTC 2024


I backport this as proposed before in https://github.com/openjdk/jdk17u-dev/pull/1900. Prereq changes are already done.

The backport has been tested by [releaseing it in SapMachine in 17.0.10](https://github.com/SAP/SapMachine/commit/[1d275fd954aaaa6b1f4623d547e3edff46b97e84](https://github.com/SAP/SapMachine/commit/1d275fd954aaaa6b1f4623d547e3edff46b97e84)). This patch here is identical to the one in SapMachine. It will go to 17.0.12 giving enough time to settle.

The g1 files needed several trivial resolves due to context differences. Especially variable do_maximum_compaction was renamed to do_maximal_compaction. This appears several times in the context.

Further trivial resolves in
src/hotspot/share/gc/serial/defNewGeneration.hpp
src/hotspot/share/gc/shared/gcTrace.hpp
src/hotspot/share/gc/shared/genCollectedHeap.cpp

src/jdk.jfr/share/conf/jfr/profile.jfc
The whitespace fix is not needed in 17. Omitted.

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

Commit messages:
 - Backport 14eb5ad0dc987ffe3621f4eeeebeb6b5a2cd691b

Changes: https://git.openjdk.org/jdk17u-dev/pull/2270/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2270&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8291753
  Stats: 217 lines in 23 files changed: 163 ins; 2 del; 52 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2270.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2270/head:pull/2270

PR: https://git.openjdk.org/jdk17u-dev/pull/2270


More information about the jdk-updates-dev mailing list