NeverPartOfCompilation node slipping through the cracks
Stefan Marr
java at stefan-marr.de
Wed Jul 9 08:47:50 UTC 2014
Hi Bernhard:
On 09 Jul 2014, at 10:41, Bernhard Urban <bernhard.urban at jku.at> wrote:
> I believe the following happened: You have annotated some method with @SlowPath, which then was not inlined by the partial evaluator, but is still using some compiler directives that would be turned into a NeverPartOfCompilationNode. The verification that such nodes do not exist is done after partial evaluation. After that, the graph is passed to the normal Graal compiler. Its inliner can then still decide to inline your method annotated with @SlowPath. If this happens, it's quite unlikely that such NeverPartOfCompilationNodes will constant fold away.
> Do you think this could have happen in your Truffle interpreter?
Yes, that’s definitely possible.
> Anyway, I’ll push a change that will turn this into a more friendly failure.
Indeed, a good error message would be much nicer than a segfault.
Thanks
Stefan
--
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/
More information about the graal-dev
mailing list