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

(0.49) Add check for JFR enablement #20879

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Jan 2, 2025

Currently, JFR is enabled by default on all platforms that support it, and it cannot be disabled. We have been using -XX:+FlightRecorder to indicate if the JVM should start with recording enabled. This is not consistent with the RI.

With this change -XX:[+|-]FlightRecorder toggles whether JFR is enabled. By default JFR will remain enabled, but we now have the ability to disable it. -XX:StartFlightRecording will be used to indicate that a recording should be begin at startup.

Backport of #20854

Currently, JFR is enabled by default on all platforms that support it,
and it cannot be disabled. We have been using `-XX:+FlightRecorder` to
indicate if the JVM should start with recording enabled. This is not
consistent with the RI.

With this change `-XX:[+|-]FlightRecorder` toggles whether JFR is enabled.
By default JFR will remain enabled, but we now have the ability to
disable it. `-XX:StartFlightRecording` will be used to indicate that a
recording should be begin at startup.

Signed-off-by: tajila <[email protected]>
@tajila tajila requested a review from pshipton January 2, 2025 16:27
@pshipton pshipton added the jfr label Jan 2, 2025
@pshipton pshipton merged commit 0568735 into eclipse-openj9:v0.49.0-release Jan 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants