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
8329332: Remove CompiledMethod and CodeBlobLayout classes #18554
Conversation
👋 Welcome back kvn! A progress list of the required criteria for merging this PR into |
@vnkozlov This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 18 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
@vnkozlov The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
Hi, I also performed some tests (tier1-3 and hotspot:tier4) on linux-riscv64 platform. Result looks good. |
I performed the build + testing |
The |
@RealFYang and @offamitkumar thank you for testing. |
Good catch, Dean. I want to keep |
I did not change |
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.
Nice cleanup! Overall, looks very good.
What about CompiledMethod_lock
? There's no CompiledMethod
anymore, but the lock name still refers to it.
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.
Nice!
We've wanted to clean up some interfaces between the CodeCache and the GC code by using nmethod closures instead of CodeBlob closures. This change (and the Sweeper removal) makes it possible to do those cleanups.
I've made a superficial pass over the patch to and left a few comments. Most of those comments are things that would be nice to fix, but could also be left as follow-up RFEs (if they are deemed to be worthy ideas to pursue).
It was different changes JDK-8226705. Renaming it will complicate these changes more than I wanted. I can do it in separate RFE. |
Thank you, @stefank, for great review. I addressed all your comments locally and will run testing in mach5 before pushing it. Except your suggestion about |
I filed RFEs: |
GHA
|
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.
There is a stale comment in test/jdk/com/sun/jdi/EATests.java:1288
-// (See CompiledMethod::is_at_poll_return())
+// (See nmethod::is_at_poll_return())
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.
I took a second pass over the changes. I've given a few suggestions below. None of them should require respinning of tests (except for making sure that this still builds).
Thank you, @stefank , for second round of review. I addressed all your comments. |
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.
Looks good.
Thank you, @stefank, @iwanowww, @dean-long and @xmas92 for reviews and @RealFYang and @offamitkumar for testing. |
/integrate |
Going to push as commit 83eba86.
Your commit was automatically rebased without conflicts. |
Revert JDK-8152664 RFE changes which was used for AOT JEP 295 implementation in JDK 9. The code was left in HotSpot assuming it will help in a future. But during work on Leyden we decided to not use it. In Leyden cached compiled code will be restored in CodeCache as normal nmethods: no need to change VM's runtime and GC code to process them.
I may work on optimizing
CodeBlob
andnmethod
fields layout to reduce header size in separate changes. In these changes I did simple fields reordering to keep small (1 byte) fields together.I do not see (and not expected) performance difference with these changes.
Tested tier1-5, xcomp, stress. Running performance testing.
I need help with testing on platforms which Oracle does not support.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18554/head:pull/18554
$ git checkout pull/18554
Update a local copy of the PR:
$ git checkout pull/18554
$ git pull https://git.openjdk.org/jdk.git pull/18554/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18554
View PR using the GUI difftool:
$ git pr show -t 18554
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18554.diff
Webrev
Link to Webrev Comment