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

Add check for JFR enablement #20854

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Add check for JFR enablement #20854

merged 1 commit into from
Dec 18, 2024

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Dec 18, 2024

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.

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
Copy link
Contributor Author

tajila commented Dec 18, 2024

jenkins test sanity xlinux jdk21

@tajila tajila requested a review from babsingh December 18, 2024 17:37
@babsingh
Copy link
Contributor

The failure seen in the sanity.openjdk build is known and unrelated: #14692.

@babsingh babsingh merged commit f82a1e0 into eclipse-openj9:master Dec 18, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants