-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8339480: Build static-jdk image with a statically linked launcher #20837
Conversation
/contributor add ihse |
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
@jianglizhou Can you please check if there are any other contributors that should be acknowledged? |
@magicus 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 87 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 |
@magicus |
@magicus |
@magicus 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. |
The |
Webrevs
|
I tried to take this for a spin on my m1 mac laptop. I ran configure and then
I'm guessing this would work if I built the regular image first, or at least at the same time. |
No, I don't think that should matter. |
I wonder if it is related to JDK-8336498? |
Thanks for asking! I checked all the related changes in https://github.com/openjdk/leyden/tree/hermetic-java-runtime branch. Following are the related commits from the branch corresponding to the extracted changes included in this PR. There are no other authors for those changes. However, all changes have gone through prior reviews by my teammates. I didn't ask it for the earlier integration PR, is there a way to mention the reviewer contributions? |
The |
@magicus This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Bot, keep it alive. |
There might still be some usages of |
…to $(MODULE)_INCLUDED_LIBS and module-libs.txt to module-included-libs.txt
/reviewers 3 |
@dholmes-ora |
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.
Hotspot changes look fine.
Thanks
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.
Hotspot code looks okay.
/integrate |
@dholmes-ora @coleenp @erikj79 Thanks for your reviews! |
Going to push as commit 1ca7644.
Your commit was automatically rebased without conflicts. |
@magicus Thanks for integrating the changes, particularly reworking and making the statically linked launcher build changes cleaner! |
As a prerequisite for Hermetic Java, we need a statically linked
java
launcher. It should behave like the normal, dynamically linkedjava
launcher, except that all JDK native libraries should be statically, not dynamically, linked.This patch is the first step towards this goal. It will generate a
static-jdk
image with a statically linked launcher. This launcher is missing several native libs, however, and does therefore not behave like a proper dynamic java. One of the reasons for this is that local symbol hiding in static libraries are not implemented yet, which causes symbol clashes when linking all static libraries together. This will be addressed in an upcoming patch.All changes in the
src
directory are copied from, or inspired by, changes made in the hermetic-java-runtime branch in Project Leyden.Progress
Issue
Reviewers
Contributors
<[email protected]>
<[email protected]>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20837/head:pull/20837
$ git checkout pull/20837
Update a local copy of the PR:
$ git checkout pull/20837
$ git pull https://git.openjdk.org/jdk.git pull/20837/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20837
View PR using the GUI difftool:
$ git pr show -t 20837
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20837.diff
Using Webrev
Link to Webrev Comment