-
Notifications
You must be signed in to change notification settings - Fork 15
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
[23.0] Allow built-in periodic JFR events when using JFR API to make recordings #573
[23.0] Allow built-in periodic JFR events when using JFR API to make recordings #573
Conversation
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 and safe to backport.
@roberttoyonaga do you think it would be possible to backport the TestThreadCPULoadEvent test as well?
Nit: Ideally you should use |
Not Robert, but it doesn't make much sense to backport the test changes as the test got introduced with oracle#6588 which introduced the |
@roberttoyonaga Could you please pin the workflow file to commit 5c44969 (rather than Something like this (in a separate commit):
|
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.
Change looks good to me. Cherry-picking doesn't really make sense in this case as it would conflict. Please be sure to pin the workflow file so that we get better pre-integration CI results. Thanks!
@zakkak I decided it might be risky to also backport jdk.ThreadCPULoadEvent because it involves VM operations, which is why I didn't also backport that test. I can instead make a new test that is specific to this fix. Would that be better? Also, how can I run the native unittests on Mandrel? Do I need to do something in order to use |
No, I believe it's not worth it (especially given we can't run unittests on Mandrel).
Unfortunately we can't, see #516 (comment) |
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
@roberttoyonaga now that #577 is merged could you please change the build type in the mandrel.yml workflow to You can do so by adding the following line below
|
The mandrel IT failures are due to quarkusio/quarkus#36058 |
Summary
Built-in periodic JFR events were previously erroneously disabled unless JFR is started from the command line when executing your app. This means that users using the JFR API would not have access to those periodic events. The fix is to always register the built-in periodic events if JFR is in the image, regardless of whether a recording is started upon application execution.
Original fix: oracle#7252