openjdk11: enable ZGC on x86_64-linux
The Z Garbage Collector is a concurrent, scalable, low latency garbage
collector designed to meet extremely-low-pause-time requirements for
small-to-multi-TB heap sizes.
ZGC can be enabled with the magical incantation:
$ java -XX:+UnlockExperimentalVMOptions -XX:+UseZGC ...
Currently, ZGC is only available for x86_64-linux (though a port for
aarch64-linux may become available at a future time.) There are also a
number of other features that currently aren't present, such as JVMCI
integration (meaning compiler tools like Graal which require JVMCI will
not work with ZGC enabled.)
Signed-off-by: Austin Seipp <aseipp@pobox.com>
commit162914742327002d49bd1dde424d399842ff7b5f
authorAustin Seipp <aseipp@pobox.com>
dateFri 16 Nov 2018, 18:48 (8 years ago)
parent5c4ed80
pkgs/development/compilers/openjdk/11.nix+1
@@ -67,6 +67,7 @@ let
6767 # See https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg49006.html
6868 "--with-extra-cflags=-Wno-error=deprecated-declarations -Wno-error=format-contains-nul -Wno-error=unused-result"
6969 ''
70+ + lib.optionalString (architecture == "amd64") "\"--with-jvm-features=zgc\""
7071 + lib.optionalString minimal "\"--enable-headless-only\""
7172 + ");"
7273 # https://bugzilla.redhat.com/show_bug.cgi?id=1306558