JEP 379: Promote low-pause-time garbage collector Shenandoah to production

Share
  • April 24, 2020

Much like with ZGC in JEP 377, the proposal in JEP 379 is to promote the Shenandoah garbage collector from experimental to production.

Java’s Shenandoah garbage collector

Shenandoah was introduced to JDK 12 by JEP 189, where it is described as a garbage collector that “reduces GC pause times by doing evacuation work concurrently with the running Java threads. Pause times with Shenandoah are independent of heap size, meaning you will have the same consistent pause times whether your heap is 200 MB or 200 GB.”

SEE ALSO: 7 JVM arguments of highly effective applications

As with other garbage collectors introduced to the JDK in recent years, Epsilon GC and ZGC for example, Shenandoah was marked as experimental. However, now JEP owner Aleksey Shipilev proposes that it’s time for Shenadoah to lose the “experimental” moniker and become a production feature of Java 15.

Currently, Shenandoah is enabled using the -XX:+UnlockExperimentalVMOptions and -XX:+UseShenandoahGC command options. Changing it to production would mean that -XX:+UnlockExperimentalVMOptions is no longer necessary. Shipilev also notes that several Shenandoah-related flags would also become “product” instead of “experimental”, but that since the default values will not be any different, the changes will be predominantly cosmetic. He also writes:

At the time of its integration into JDK 12, Shenandoah had been already shipping in Red Hat 8u and 11u downstream releases as a supported garbage collector, and used by RHEL and RHEL downstream users. Because of this, Shenandoah 8u and Shenandoah 11u are already non-experimental and thus not affected by this change. Since there are only a few users that run something other than 8u and 11u, we expect the actual impact of this change to be minuscule.

SEE ALSO: Integrating Python with Java

JEP 379 is targeted to JDK 15, so in September Shenandoah will become a production feature. In the meantime, keep an eye out for our Java 15 news updates.

The post JEP 379: Promote low-pause-time garbage collector Shenandoah to production appeared first on JAXenter.

Source : JAXenter