Again Trouble with Non-local Returns

Stefan Marr java at stefan-marr.de
Thu May 8 13:42:55 UTC 2014


Hi:

On 08 May 2014, at 04:59, Andreas Woess <andreas.woess at jku.at> wrote:

> I couldn't tell for sure now, but the deoptimization is likely coming
> from an UnexpectedResultException. Anyway, the actual problem is
> another. You can observe it when you add these two options
> -Dtruffle.TraceRewrites=true -Dtruffle.DetailedRewriteReasons=true:
> We see a ValueNonePrimGenericNode that constantly rewrites itself to
> ValueNonePrimGenericNode (sic).

Sorry for wasting your time with trivial stuff :(
Was to excited to have a small test case that I forgot to check for rewriting issues.

> For some reason, the DSL has picked executePreEvaluated here and
> stubbornly tries to cast the receiver to its parameter type, Object[].
> My dumb and easy quickfix was to rename
> UnaryExpressionNode.executePreEvaluated to something that doesn't start
> with "execute". After:

And, I even ran into issues with executePreEvaluated before.
Oh well, I renamed it now. Unfortunately, the change didn’t have any impact on overall performance.
But the test case is fixed, thanks!

Best regards
Stefan

-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list