Optimize bytecode for combination enhanced-for and enums

Roel Spilker r.spilker at gmail.com
Wed Mar 28 07:35:59 PDT 2012


Rémi, not if the synthetic inner class is used, what is my proposal.

On Wed, Mar 28, 2012 at 4:13 PM, Rémi Forax <forax at univ-mlv.fr> wrote:

>
> Hi Roel,
> There are several issues with your template, EDGES is initialized too
> soon, i.e.
> even if you don't call bar() and stay too long, i.e even if you never call
> bar() more than once.
>
> I think it's better to let the the escape analysis pass done by the JIT to
> inline
> values() and remove the call to clone().
>
> Rémi
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20120328/7522111b/attachment.html 


More information about the compiler-dev mailing list