-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel's embedded JDK is minimized #6314
Labels
Milestone
Comments
(blocked by #6313) |
meisterT
added
P1
I'll work on this now. (Assignee required)
and removed
untriaged
labels
Nov 29, 2018
bazel-io
pushed a commit
that referenced
this issue
Dec 3, 2018
Steps: curl https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz -o zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz tar xf zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz cd zulu9.0.7.1-jdk9.0.7-linux_x64 ./bin/jlink --module-path ./jmods/ --add-modules java.base,java.logging,java.management,jdk.management,jdk.unsupported,jdk.net,jdk.zipfs,java.xml --vm=server --strip-debug --no-man-pages --output zulu9.0.7.1-jdk9.0.7-linux_x64-minimal cp DISCLAIMER readme.txt zulu9.0.7.1-jdk9.0.7-linux_x64-minimal GZIP=-9 tar -zcf ../zulu9.0.7.1-jdk9.0.7-linux_x64-minimal.tar.gz zulu9.0.7.1-jdk9.0.7-linux_x64-minimal Closes #6819. Progress towards #6314. PiperOrigin-RevId: 223785707
meisterT
added a commit
to meisterT/bazel
that referenced
this issue
Dec 17, 2018
This refactoring is necessary to test with the minified version of bazel, see bazelbuild#6314. RELNOTES: None
meisterT
added a commit
to meisterT/continuous-integration
that referenced
this issue
Dec 19, 2018
See bazelbuild/bazel#6314 for context.
philwo
pushed a commit
to bazelbuild/continuous-integration
that referenced
this issue
Dec 20, 2018
bazel-io
pushed a commit
that referenced
this issue
Dec 20, 2018
Progress towards #6314 RELNOTES: None PiperOrigin-RevId: 226317159
bazel-io
pushed a commit
that referenced
this issue
Dec 20, 2018
One more step of #6314 RELNOTES: None PiperOrigin-RevId: 226320059
meisterT
added a commit
to meisterT/bazel
that referenced
this issue
Jan 18, 2019
This builds the minimal JDK locally and uses it as embedded JDK. We typically use the cached one on mirror.bazel.build, because the jlink is heavily non-determistic. However, this will make local testing easier, e.g. when we do upgrades from one JDK to another. Progress on bazelbuild#6592 and bazelbuild#6314. RELNOTES: None
laszlocsomor
pushed a commit
to laszlocsomor/bazel
that referenced
this issue
Jan 18, 2019
This builds the minimal JDK locally and uses it as embedded JDK. We typically use the cached one on mirror.bazel.build, because the jlink is heavily non-determistic. However, this will make local testing easier, e.g. when we do upgrades from one JDK to another. Progress on bazelbuild#6592 and bazelbuild#6314. RELNOTES: None Closes bazelbuild#7175. PiperOrigin-RevId: 229912262
meisterT
added a commit
to meisterT/bazel
that referenced
this issue
Jan 29, 2019
With this we can also build the allmodules JDK in the buildkite pipeline. This is a necessary step for the upgrade to JDK 11, see bazelbuild#6592 and bazelbuild#6314. RELNOTES: None
meisterT
added a commit
to meisterT/bazel
that referenced
this issue
Jan 29, 2019
With this we can also build the allmodules JDK in the buildkite pipeline. This is a necessary step for the upgrade to JDK 11, see bazelbuild#6592 and bazelbuild#6314. RELNOTES: None
weixiao-huang
pushed a commit
to weixiao-huang/bazel
that referenced
this issue
Jan 31, 2019
This builds the minimal JDK locally and uses it as embedded JDK. We typically use the cached one on mirror.bazel.build, because the jlink is heavily non-determistic. However, this will make local testing easier, e.g. when we do upgrades from one JDK to another. Progress on bazelbuild#6592 and bazelbuild#6314. RELNOTES: None Closes bazelbuild#7175. PiperOrigin-RevId: 229912262
weixiao-huang
pushed a commit
to weixiao-huang/bazel
that referenced
this issue
Jan 31, 2019
With this we can also build the allmodules JDK in the buildkite pipeline. This is a necessary step for the upgrade to JDK 11, see bazelbuild#6592 and bazelbuild#6314. RELNOTES: None Closes bazelbuild#7287. PiperOrigin-RevId: 231398365
meisterT
added a commit
that referenced
this issue
Feb 21, 2019
This saves ~5MB on linux (probably the same on other platforms as well). Progress on #6314. RELNOTES: None
This is the current list and sizes of the modules that we include:
|
meisterT
added a commit
to meisterT/bazel
that referenced
this issue
Apr 23, 2019
Commit 4/4 Fix bazelbuild#7502, partly address bazelbuild#6314.
joeleba
pushed a commit
to joeleba/continuous-integration
that referenced
this issue
Jun 17, 2019
I don't currently have further plans to work on this, so I am closing it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Restrict the set of modules in the embedded JDK to what Bazel needs, probably:
java.base, java.compiler, java.logging, java.management, jdk.management, jdk.unsupported, jdk.compiler, jdk.net, jdk.zipfs
Part of https://docs.google.com/document/d/1Igmv-2GfXkoVFWTXvBYPeniQom8nLAwzqzridDlBIS4/edit?ts=5babff11#heading=h.nke12cugvesd
Will reduce final binary size by ~40MB
The text was updated successfully, but these errors were encountered: