review request (L): 7001424: implement JSR 292 EG adjustments, November 2010

Rémi Forax forax at univ-mlv.fr
Thu Dec 16 04:47:18 PST 2010


  Le 16/12/2010 13:04, John Rose a écrit :
> This is a JDK-only change request, in response to the last several weeks of JSR 292 EG work.
>
> http://cr.openjdk.java.net/~jrose/7001424/webrev.00/
>
> May I have an eyeball or two, please?
>
> Thanks,
> -- John
>
> P.S.  The corresponding updated javadoc is in the usual place:
>    http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm
>

In MethodHandles, why do you test method types using equals and not ==,
method type aren't interned anymore ?

In VolatileCallSite,

invalidateAll(List<VolatileCallSite>  sites)
should be
invalidateAll(List<? extends VolatileCallSite>  sites)

In Switcher, invalidateAll should not use foreach:

   public static void invalidateAll(Switcher[] switchers) {
         MutableCallSite[] sites = new MutableCallSite[switchers.length];
         for (int i=0; i<switchers.length; i++) {
             Switcher switcher = switchers[i];
             sites[i] = switcher.mcs;
             switcher.mcs.setTarget(K_false);
         }
         MutableCallSite.sync(sites);
   }


regards,
Rémi



More information about the hotspot-compiler-dev mailing list