New

Howard Lovatt howard.lovatt at gmail.com
Mon Mar 29 18:31:00 PDT 2010


It is not easy to do this optimization, take a look at my example in point
4. I can't see how the compiler can do this at all. The JVM might be able to
do it. The obvious checks are that it doesn't access this or any non-final
local variables, but in addition you need to check that == and != are never
used. I would suggest that the optimization is only practical once the JVM
has in-lined all the method calls, then it could check if == or != are used.

On 29 March 2010 21:56, Peter Levart <peter.levart at marand.si> wrote:

> On 03/29/10, Howard Lovatt wrote:
> > Just a note. I wouldn't suggest escape analysis as the appropriate
> > optimization. It would need to be a new optimization.
> >
>
> Do you have any idea how such optimization should work?
>
> Regards, Peter
>



-- 
 -- Howard.


More information about the lambda-dev mailing list