Skip to content
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

Omit internal jdk.JavaMonitorWait JFR events #7518

Merged
merged 3 commits into from
Oct 14, 2023

Conversation

roberttoyonaga
Copy link
Collaborator

Summary

This is a very minor change to replicate the behavior in OpenJDK by omitting internal jdk.JavaMonitorWait events emitted by the JFR periodic task. This basically just reduces some noise, especially when the application is idle.

Bugzilla: https://bugs.openjdk.org/browse/JDK-8286707?jql=text%20~%20%22jfr%22
OpenJDK PR: openjdk/jdk#8883

See before (sorted by thread name):
image

And after:
image

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 29, 2023
@roberttoyonaga roberttoyonaga self-assigned this Sep 29, 2023
…r/events/JavaMonitorWaitEvent.java

Co-authored-by: Fabio Niephaus <[email protected]>
Copy link
Member

@christianhaeubl christianhaeubl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

Instead of doing a string comparison, please directly compare the class objects (the String comparison will fail silently if the JDK code changes). You will need to create a @TargetClass for jdk.jfr.internal.JVM$ChunkRotationMonitor.

@christianhaeubl
Copy link
Member

Thanks, this PR will be merged to master in the next few days.

Copy link
Member

@fniephaus fniephaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Robert!

@graalvmbot graalvmbot merged commit da6f09d into oracle:master Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native-image native-image-jfr OCA Verified All contributors have signed the Oracle Contributor Agreement. redhat-interest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants