RFR: 8354555: Add generic JFR events for TaskTerminator [v2]
Xiaolong Peng
xpeng at openjdk.org
Fri May 23 01:14:05 UTC 2025
> The purpose of the PR is to add generic JFR events for TaskTerminator to track the attempts and timings that GC threads have tried to terminate GC tasks.
>
> Today only G1 emits JFR event with name `Termination` from [G1ParEvacuateFollowersClosure](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/gc/g1/g1YoungCollector.cpp#L555-L563), all other garbage collectors don't emit any JFR event for the termination attempt at all.
>
> By adding this, it gives performance engineers the visibility to the termination attempts and termination time when GC threads trying to finish GC tasks, we could build tool to analyze the jfr events to determine if there is potential data structure issue in application code, e.g. very large LinkedList or LinkedBlockingQueue.
>
> ### Test
> - [x] Test and verify the termination events in jfr for G1, Shenandoah and Parallel GC.
> - [x] Tier 1
> - [x] Tier 2
Xiaolong Peng has updated the pull request incrementally with one additional commit since the last revision:
Patch to fix the PR concerns
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24676/files
- new: https://git.openjdk.org/jdk/pull/24676/files/7b1412f3..e362b7cc
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24676&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24676&range=00-01
Stats: 65 lines in 7 files changed: 23 ins; 24 del; 18 mod
Patch: https://git.openjdk.org/jdk/pull/24676.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24676/head:pull/24676
PR: https://git.openjdk.org/jdk/pull/24676
More information about the hotspot-dev
mailing list