openjdk-lts 11.0.9+ could include Shenandoah GC on amd64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-lts (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In OpenJDK 11.0.9, the Shenandoah GC has been backported from OpenJDK 15, and is considered "Ready for Production". References:
https:/
https:/
https:/
Just like ZGC, it is an optional feature, which must be explicitly enabled at build time. Some vendors enable it already:
https:/
For instance, Fedora enables it on x86_64 (amd64), now without any specific patch (prior to 11.0.9, they were shipping the backport patch):
https:/
I think Ubuntu should do the same, enable it on amd64 (just like ZGC), and backport to Bionic/Focal. For some use-cases, Shenandoah has already proved it brings valuable improvements compared to G1GC, it would be nice being able to use it on Ubuntu-based containers/systems too.
I will attach an untested patch, just to show what I think is the required change to debian/rules.
============
> We also need:
> 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04
> 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ apt-cache policy openjdk-
openjdk-
Installed: 11.0.9+
Candidate: 11.0.9+
Version table:
*** 11.0.9+
500 http://
500 http://
100 /var/lib/
10.
500 http://
> 3) What you expected to happen
$ java -XX:+UseShenand
[0.004s][info][gc] Heuristics ergonomically sets -XX:+ExplicitGC
[0.004s][info][gc] Heuristics ergonomically sets -XX:+Shenandoah
[0.005s][info][gc] Using Shenandoah
openjdk version "11.0.9" 2020-XX-XX
...
> 4) What happened instead
$ java -XX:+UseShenand
Unrecognized VM option 'UseShenandoahGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The attachment "openjdk- lts_11. 0.9+11_ enable- shenandoahgc- on-amd64. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]