-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8373625: CPUTimeCounters creates a total counter for unsupported GCs #28803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back jnorlinder! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@JonasNorlinder The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
/label add hotspot-gc serviceability |
|
/label remove hotspot-runtime |
|
@JonasNorlinder The |
|
@JonasNorlinder |
CPUTimeCountersunconditionally createsCPUTimeGroups::CPUTimeType::gc_total. Since only Parallel and G1 are supported by this framework/class, this leads to publishing a counter that always resolves to 0. This may be contradictory for an end-user especially so as we now support logging GC CPU time for any GC inside Hotspot. For an example using-XX:+UseZGC -Xlog:cpuwe getBut
jcmd $(pgrep -n java) PerfCounter.print | grep -E "sun.threads.total_gc_cpu_time"prints:sun.threads.total_gc_cpu_time=0.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28803/head:pull/28803$ git checkout pull/28803Update a local copy of the PR:
$ git checkout pull/28803$ git pull https://git.openjdk.org/jdk.git pull/28803/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28803View PR using the GUI difftool:
$ git pr show -t 28803Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28803.diff
Using Webrev
Link to Webrev Comment