-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[GR-49852] [GR-49613] Update JVMCI to 22+22-jvmci-b01. #7748
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9ca5670
update to 22+22-jvmci-b01
OracleLabsAutomation f2f1257
update JVMCI version check and oraclejdk22
marwan-hallaoui ae1329a
update labsjdk22
marwan-hallaoui f4cf7a6
svm: adopt "JDK-8239508 JFR: @RemoveFields" [GR-49904]
zapster 07f8f90
svm: adopt "JDK-8288899 java/util/concurrent/ExecutorService/CloseTes…
zapster dc1db71
merge with upstream
zapster c37a134
fix typo
zapster 1446b09
use deployed artifacts
marwan-hallaoui File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For JDK 22, I think you will still need to call
createMirrorEventsMapping()
. ButcreateMirrorEventsMapping()
will needReflectionUtil.lookupClass(false, "jdk.jfr.internal.MirrorEvents");
instead ofReflectionUtil.lookupClass(false, "jdk.jfr.internal.instrument.JDKEvents");
depending on whatJavaVersionUtil.JAVA_SPEC
returns.Additionally, I think an
@Alias
will be required forjdk.jfr.internal.instrument.JDKEvents#mirrorEventClasses
similar to what already exists inTarget_jdk_jfr_internal_instrument_JDKEvents
for JDK 21.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.
Thanks so much for the suggestions @roberttoyonaga! Interestingly, the mirrored events are not covered by our testing.
Since the JDK update is rather critical, we plan to merge this PR as is and deal with the remaining JFR changes in a follow-up PR. We should also add some testing so that we cover these cases in our gate jobs.
If you could prepare a PR, we would very much appreciate it as it would speed up things. I can let you know as soon as the labjdk builds are publicly available, so you can start on top of this PR without waiting for it to merge.
Otherwise, if you don't have time, I can prepare a PR as well.
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.
The labsJDK 22+22 artifacts are available: https://github.com/graalvm/labs-openjdk/releases
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.
Hi @zapster! Yes, I'll prepare a PR for these JFR updates
Uh oh!
There was an error while loading. Please reload this page.
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.
Hi @zapster, on second thought, we may not actually need to do much further to accommodate the changes related to
MirrorEvents.java
. The new behaviour is thatjdk.jfr.internal.MirrorEvents
maintains a cache of all the mirror event classes, instead of that cache needing to be built inJDKEvents
. This means the extra step of usingSecuritySupport#registerMirror
is unnecessary in JDK22. So now we also don't have to do this extra step at native image build-time before manually retransforming the JFR event classes inJfrEventSubstitution
anymore.I made a PR that adds a test to verify mirror events are handled correctly and also adds a substitution to reset
MirrorEvent#mirrorEventClasses
. #7771There 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.
Awesome, thanks a lot!