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

Всеволод Толстопятов qwwdfsad at gmail.com
Tue Jun 21 09:06:20 UTC 2016


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.

--
Best regards,
Tolstopyatov Vsevolod

On Tue, Jun 21, 2016 at 11:40 AM, Roman Kennke <rkennke at redhat.com> wrote:

>
>
> > Hi again,
> >
> > +    if (ShenandoahUnloadClassesFrequency) return false;
>
> >
> > Shouldn't it be if (ShenandoahUnloadClassesFrequency  == 0)? :)
>
> Right. I should put more care to seemingly trivial things ;-) Thanks for
> catching this.
>
> > Also, why it's even possible to totally disable ref-processing (guess
> this
> > question is applicable to unloading either)?
>
> Some apps may not use weak references or fancy class loading stuff, and
> can benefit (e.g. get lower pause times) by disabling this.
>
> > Shouldn't it be something
> > like range(1, 100)?
>
> Dunno yet. It's very experimental for now.
>
> > Maybe it's worth to merge this two options?
>
> Maybe, dunno yet.
>
> Thanks and best regards,
> Roman
>
> --
> Sent from my Fairphone
>


More information about the shenandoah-dev mailing list