-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8003216: Add JFR event indicating explicit System.gc() call #4456
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
Conversation
👋 Welcome back egahlin! A progress list of the required criteria for merging this PR into |
/label remove hotspot |
/label add hotspot-jfr |
/label add hotspot-gc |
@egahlin |
@egahlin |
@egahlin |
@egahlin This change is no longer ready for integration - check the PR body for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm.
/integrate |
Going to push as commit e11f70a.
Your commit was automatically rebased without conflicts. |
Hi,
This is a continuation of a review that started before the pandemic.
In an offline discussion with Stefan Johansson, we looked into adding GC id to the SystemGC event, but it was not trivial. Still, it would make sense to have this event to see the stack trace of the System GC call. GC id can always be added as another enhancement. I added a field that indicates the status of -XX:+ExplicitGCInvokesConcurrent, to hint to users that the duration of the event may not be the time the GC took.
I only emit the event if a GC is triggered, so there is no need for a field -XX:+DisableExplicitGC which we talked about back then. The reason is that it could potentially create many events in the default configuration, for example if called every rendered frame. I also think users want to track calls that actually led to a GC. If there is a need for a second field, it could be added as another enhancement later.
Testing: tier1/tier2 + test/jdk/jdk/jfr
Thanks
Erik
Progress
Error
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4456/head:pull/4456
$ git checkout pull/4456
Update a local copy of the PR:
$ git checkout pull/4456
$ git pull https://git.openjdk.java.net/jdk pull/4456/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4456
View PR using the GUI difftool:
$ git pr show -t 4456
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4456.diff