-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8273092: Sort classlist in JDK image #5288
Conversation
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
Webrevs
|
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.
Seems OK.
* common use. | ||
* | ||
* The classlist is produced by adding -XX:DumpLoadedClassList=classlist | ||
*/ |
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 like a copy-paste error (also redundant)
@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 50 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 |
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 great. Thank you for helping to make the build deterministic!
while (scanner.hasNextLine()) { | ||
String line = scanner.nextLine(); | ||
Matcher m = p.matcher(line); | ||
if (m.find()) { |
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.
Are we sure that a comment line will not match this regexp, or that if it matches, it is not a comment line?
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 the comments. I've swapper the matching order to check for leading #
and @
characters first.
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 Ioi! These changes look good to me.
Going to push as commit 1996f64.
Your commit was automatically rebased without conflicts. |
When the classlist is generated using build.tools.classlist.HelloClasslist, its contents may be non-deterministic due to Java thread execution order.
We should sort the generated classlist to make the JDK image's contents more deterministic.
Tested with Mach5 tier1, tier2, builds-tier5
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5288/head:pull/5288
$ git checkout pull/5288
Update a local copy of the PR:
$ git checkout pull/5288
$ git pull https://git.openjdk.java.net/jdk pull/5288/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5288
View PR using the GUI difftool:
$ git pr show -t 5288
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5288.diff