RFC: Revisiting ShenandoahOptimize*Finals flags

Roman Kennke rkennke at redhat.com
Fri Jan 11 10:59:57 UTC 2019


> Also, we enable ShenandoahOptimizeStaticFinals by default, but not
> ShOptInstanceFinals and ShOptStableFinals. How is StaticFinals any
> better than InstanceFinals? Exchange <init> with <cinit> and the
> instance with the Class object, it's pretty much the same problem, and
> not under our control at all.

Or is it guaranteed that a Class used by getstatic in C2 is fully
constructed? In which case +ShenandoahOptimizeStaticFinals would be ok.

Roman



More information about the shenandoah-dev mailing list