Re: Performance of non-static method handles

2018-02-02 Thread Remi Forax
- Mail original - > De: "Paul Sandoz" <paul.san...@oracle.com> > À: "Da Vinci Machine Project" <mlvm-dev@openjdk.java.net> > Envoyé: Vendredi 2 Février 2018 17:52:44 > Objet: Re: Performance of non-static method handles > At some point in t

Re: Performance of non-static method handles

2018-02-02 Thread Paul Sandoz
invokedynamic with an > invokeExact on a constant method handle :) > > see you tomorrow, > Rémi > > - Mail original - >> De: "John Rose" <john.r.r...@oracle.com> >> À: "Da Vinci Machine Project" <mlvm-dev@openjdk.java.net> &

Re: Performance of non-static method handles

2018-02-02 Thread Remi Forax
s/instanceof/instead of :) Rémi - Mail original - > De: "Remi Forax" <fo...@univ-mlv.fr> > À: "Da Vinci Machine Project" <mlvm-dev@openjdk.java.net> > Envoyé: Vendredi 2 Février 2018 14:03:35 > Objet: Re: Performance of non-static method ha

Re: Performance of non-static method handles

2018-02-02 Thread Remi Forax
gt; Envoyé: Vendredi 2 Février 2018 13:33:49 > Objet: Re: Performance of non-static method handles > Vladimir Ivanov did some work a few years ago on MH customization for hot MH > instances. It’s in the system. That should get better results than what you > show. I wonder why

Re: Performance of non-static method handles

2018-02-02 Thread Vladimir Ivanov
MH customization doesn't help here. The benchmark measures the cost of MH type check + MH.invokeBasic() call. For MH.invokeExact(), type check is ptr comparison of MH.type against MethodType associated with the call site. MH.invokeBasic() involves the following steps: MethodHandle

Re: Performance of non-static method handles

2018-02-02 Thread John Rose
Vladimir Ivanov did some work a few years ago on MH customization for hot MH instances. It’s in the system. That should get better results than what you show. I wonder why it isn’t kicking in. You are using invokeExact right? > On Feb 2, 2018, at 1:26 PM, Charles Oliver Nutter