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 08:40:35 UTC 2016



> 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