-
Notifications
You must be signed in to change notification settings - Fork 6.3k
8368960: Adjust java UL logging in the build #27588
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
@MBaesken 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 24 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 |
Webrevs
|
@MBaesken I thought the aim was to redirect log warnings/errors to stderr, not to disable logging completely. |
Yeah I considered this too. |
If it's possible to redirect it to stderr, I think that would be preferred. It would make us aware of misconfigured tool command lines. In the case of the original warning you saw that triggered this, I think we need to actually fix our usage of CDS in the boot JDK. The current implementation was introduced back when the JDK didn't ship with a default CDS archive. Now that it does, we don't actually need to create one in configure. It would be interesting to see if there is any performance difference using the default archive. |
I adjusted the settings, please comment if this is better. |
So do you think we can just kick out this archive dumping + |
Yes, I think we can, but I would like to see it verified to not cause a regression in build performance before we do. |
# Force en-US environment | ||
UTIL_ADD_JVM_ARG_IF_OK([-Duser.language=en -Duser.country=US],boot_jdk_jvmargs,[$JAVA]) | ||
UTIL_ADD_JVM_ARG_IF_OK([-Xlog:all=warning:stderr],boot_jdk_jvmargs,[$JAVA]) |
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.
This is not sufficient you have to disable the warnings on stdout, not just enable them on stderr.
In the build process, unwanted UL error/warning messages can pollute stdout and influence the build process/results.
An example is the polluted blocked.certs file from https://bugs.openjdk.org/browse/JDK-8357691 .
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27588/head:pull/27588
$ git checkout pull/27588
Update a local copy of the PR:
$ git checkout pull/27588
$ git pull https://git.openjdk.org/jdk.git pull/27588/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27588
View PR using the GUI difftool:
$ git pr show -t 27588
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27588.diff
Using Webrev
Link to Webrev Comment