-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8352579: Refactor CDS legacy optimization for lambda proxy classes #24145
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
8352579: Refactor CDS legacy optimization for lambda proxy classes #24145
Conversation
|
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
|
@iklam 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
matias9927
left a 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.
Thanks for addressing our offline conversation, looks good to me!
calvinccheung
left a 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.
Spotted couple of extra include statements. Looks good.
| #include "cds/lambdaProxyClassDictionary.hpp" | ||
| #include "classfile/systemDictionaryShared.hpp" | ||
| #include "interpreter/bootstrapInfo.hpp" | ||
| #include "jfr/jfrEvents.hpp" |
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.
Extra include at line 31?
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.
jfrEvents.hpp is needed by EventClassLoad on line 360
| #include "cds/classListParser.hpp" | ||
| #include "cds/classListWriter.hpp" | ||
| #include "cds/dumpTimeClassInfo.inline.hpp" | ||
| #include "cds/dynamicArchive.hpp" |
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.
Pre-existing: I think the include of cds/archiveHeapLoader.hpp at line #27 is unnecessary.
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.
Removed.
calvinccheung
left a 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.
Looks good.
|
Thanks @matias9927 and @calvinccheung for the review |
|
Going to push as commit 2483340. |
Since JDK 16, CDS has provided limited optimization for lambda expressions. This has been superseded by JEP 483 and is useful only when
-XX:+AOTClassLinkingis not enabled (which is the case for the default CDS archive, for compatibility reasons).The "legacy lambda optimization" may eventually be removed. For the time being, we should consolidate the code into a single source code and clearly mark its uses. This way we can avoid confusion with the JEP 483 code for supporting lambdas (and other java.lang.invoke functionalities).
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24145/head:pull/24145$ git checkout pull/24145Update a local copy of the PR:
$ git checkout pull/24145$ git pull https://git.openjdk.org/jdk.git pull/24145/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24145View PR using the GUI difftool:
$ git pr show -t 24145Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24145.diff
Using Webrev
Link to Webrev Comment