Fix performance warnings

Renze Torensma renzetorensma at gmail.com
Thu May 21 22:21:57 UTC 2015


Hi,

When I run my program with the compiler flag -G:+TraceTrufflePerformanceWarnings I get several warnings:

[truffle] perf warn        not inlined Interface call to HotSpotMethod<List.size()> (36|MethodCallTarget)
[truffle] perf warn        not inlined Virtual call to HotSpotMethod<Type.getArity()> (97|MethodCallTarget)
[truffle] perf warn        non-leaf type checkcast: Lorg/rascalmpl/interpreter/result/AbstractFunction; (82|CheckCast)

I understand Truffle can’t inline virtual and interface calls (are interface calls also virtual calls?) but I’m not sure how to fix those issues. I tried using a ValueProfile but I’m not sure which function calls I should wrap with a profile since I don’t know which lines exactly (it only says 36|MethodCallTarget but I don’t know what that means). And I don’t know whether or not this is the right approach to fix those performance issues.

For the last one I have no clue what that means, maybe someone can expain a little and some pointers about how to fix that?

Regards,
Renze


More information about the graal-dev mailing list