-
Notifications
You must be signed in to change notification settings - Fork 3
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
JFRTest.jfrOptionsSmokeTest fails on latest GraalVM for JDK 24+24 #297
Comments
@roberttoyonaga Do you mind taking a look? Thanks! |
Yes, I'll look into it! At first glance it looks like an issue related to JFR refactoring for the JCMD feature. |
That seems to be the problem. JFR shouldn't accept "c" as a unit of size. So
Previous GraalVM versions accepted any string as possible units and defaulted to "bytes" if they weren't recognized [1]. This is because we manually initialized recordings upon start up [2]. But since the new JCMD/Attach-API feature was merged, we now delegate the JFR startup to the JFR DCMD code reused from the JDK [3]. JFR in JDK does is less lenient and throws an error if unrecognized units are used [4] So to summarize, Native Image previously was more lenient on unrecognized units than OpenJDK, but after the new JCMD changes, the behavior is the same, stricter. Was there a reason that |
Actually, we should probably just remove the "c", because the test expects bytes, not KB, MB, etc. [1] |
+1 |
Remove the `c` in the start configuration which was previously silently converted to bytes. Now an illegal unit results in an error. Also fix a potential divide by zero in JFR perf tests. Closes #297
The test fails in CI with:
See: https://github.com/graalvm/mandrel/actions/runs/11944256969/job/33295878881#step:11:21640
Reproducible with a JDK 24+24 Linux x86_64 build from temurin and GraalVM master revision
5a5cb09814b17eb4986cc3fb680636fc31a661ba
The text was updated successfully, but these errors were encountered: