docker-library / openjdk

Docker Official Image packaging for EA builds of OpenJDK from Oracle
http://openjdk.java.net
MIT License
1.14k stars 471 forks source link

OpenJDK 17 images don't support Shenandoah #471

Closed AngerM-DD closed 2 years ago

AngerM-DD commented 2 years ago

For some reason none of the jdk17 images I've pulled support Shenandoah.

~ docker run -it --entrypoint=/bin/sh openjdk:17-alpine
/ # java -XX:+UseShenandoahGC --version
Error occurred during initialization of VM
Option -XX:+UseShenandoahGC not supported
/ #
~ docker run -it --entrypoint=/bin/sh openjdk:17-slim-bullseye
Unable to find image 'openjdk:17-slim-bullseye' locally
17-slim-bullseye: Pulling from library/openjdk
Digest: sha256:d78b76268a76f7f4d872faf78fdfff71e207cfd474f960572c3ab146e2640506
Status: Downloaded newer image for openjdk:17-slim-bullseye
# java -XX:+UseShenandoahGC --version
Error occurred during initialization of VM
Option -XX:+UseShenandoahGC not supported
#

Normally:

~ java -XX:+UseShenandoahGC --version
openjdk 17 2021-09-14 LTS
OpenJDK Runtime Environment Corretto-17.0.0.35.2 (build 17+35-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.0.35.2 (build 17+35-LTS, mixed mode, sharing)
tianon commented 2 years ago

I'm inclined to say this is a duplicate of https://github.com/docker-library/openjdk/issues/437, although with the small adjustment that the OpenJDK 17 builds come from http://jdk.java.net/17/ so this must be a choice Oracle made in the creation of those binaries.

AngerM-DD commented 2 years ago

Yeah it appears Oracle refuses to ship Shenandoah in any of their releases...