Temurin-build: Build JDK11u 11.0.9 (or a variant) with Shenandoah

Created on 5 Oct 2020  路  8Comments  路  Source: adoptium/temurin-build

Hello,

Do you plan to release a jdk11u build with Shenandoah ? As you are certainly aware Shenandoah was back-ported this summer, it just need to be activated in the build.

While the modification in this file is likely straightforward, it has certainly implications which I do not grasp. Wether to include Shanandoah in the _default_ build may be something up to debate, but in the case it's a no I think that shipping a JDK11u variant with Shenandoah could be appreciated, I certainly would.

Cheers,
Thank you for this project !!!

enhancement

Most helpful comment

IMO we should include it as a default, it's mainline code, and fully supported there.

All 8 comments

IMO we should include it as a default, it's mainline code, and fully supported there.

Agreed. Do we need to discuss that in a TSC call, @karianna?

I'll just make it a quick poll vote I think.

I would be in favour of Shenandoah being included as a default if you're looking for community opinions :)

So looking at this more closely, I think the nightlies just have this automatically.

@bric3 Can you try a https://adoptopenjdk.net/nightly.html build (Java 11) and let us know if that works for you?

@karianna Using the macOs build at least didn't. I'll test a linux one in a minute. EDIT it the same with the linux build. (Both dated from October 5).

$ tar xf OpenJDK11U-jdk_x64_mac_hotspot_2020-10-05-14-54.tar.gz
$ cd jdk-11.0.9+10/Contents/Home/bin
$ ./java --version
openjdk 11.0.9 2020-10-20
OpenJDK Runtime Environment Hotspot (build 11.0.9+10-202010050013)
OpenJDK 64-Bit Server VM Hotspot (build 11.0.9+10-202010050013, mixed mode)
$ ./java -XX:+PrintFlagsFinal -XX:+UseShenandoahGC --version | less
Unrecognized VM option 'UseShenandoahGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Anyway on my own build from openjdk-jdk11u I had to explicitly activate it (--with-jvm-features=shenandoahgc), but this was a few days ago.

openjdk 11.0.9-internal 2020-10-20
OpenJDK Runtime Environment (build 11.0.9-internal+0-adhoc.bric3.openjdk-jdk11u)
OpenJDK 64-Bit Server VM (build 11.0.9-internal+0-adhoc.bric3.openjdk-jdk11u, mixed mode)

I'm sorry but I don't see Shenandoah in AdoptOpenJDK 11.0.9. What am I doing wrong?

C:\Soft\jdk-11\bin>java --version
openjdk 11.0.9 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)

C:\Soft\jdk-11\bin>java -XX:+UseShenandoahGC --version
Unrecognized VM option 'UseShenandoahGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

kuenking picture kuenking  路  21Comments

DanielMartensson picture DanielMartensson  路  25Comments

sxa picture sxa  路  22Comments

andrew-m-leonard picture andrew-m-leonard  路  95Comments

karianna picture karianna  路  26Comments