javagarbage-collectionshenandoah

Can't use Shenandoah GC


I can't put ShenandoahGC to work while trying to run a Java application. Regardless of what I try, the output is as follows, when invoking the java command from Terminal (or CMD):

Error occurred during initialization of VM

Option -XX:+UseShenandoahGC not supported

Running openJDK version 15.0.2 on Ubuntu (WSL) and on Windows, I get the same message on both.

Have tried applying the -XX:+UnlockExperimentalVMOptions option next to -XX:+UseShenandoahGC, but as far as I know the experimental status was dropped with JDK 15.


Solution

  • From what I have read here: What is new in Java 15 (point 10. JEP 379) Shenandoah GC is not included in official OpenJDK 15 release.