hg: shenandoah/jdk9/hotspot: Allow 0 as ref-proc and class-unloading frequency (turning them off). Lower defaults for frequency to every 5th cycle.

Roman Kennke rkennke at redhat.com
Tue Jun 21 09:12:49 UTC 2016


Am Dienstag, den 21.06.2016, 12:06 +0300 schrieb Всеволод Толстопятов:
> Got it.
> Asking because there is specification "All soft references to softly-
> reachable objects are guaranteed to have been cleared before the
> virtual machine throws an OutOfMemoryError", and I don't know if
> there is other hotspot options which can "violate" (sure it's up to
> user to enable this, but anyway) spec in release build.

This option only turns of reference processing and class unloading for
concurrent GC cycles. Before we throw an OutOfMemory, we're running a
last-ditch stop-the-world collection, and this will always do reference
processing and class unloading. Therefore we're not violating the spec.
:-)

Cheers,
Roman


More information about the shenandoah-dev mailing list