native methods inlining

Raffaello Giulietti raffaello.giulietti at gmail.com
Mon Nov 16 07:55:10 PST 2009


Christian Thalinger wrote:
> On Mon, 2009-11-16 at 16:32 +0100, Raffaello Giulietti wrote:
>> Not directly related to the mlvm but just for my own curiosity:
>>
>> * Is HotSpot able to inline JNI calls?
>> * If so, what are the prerequisites?
>> * Or are there plans to add this optimization?
> 
> C2 (not sure about C1) can inline (intrinsify) a couple of JNI methods
> from the core library, like e.g. Class.getSuperclass().
> 
> But if you mean whether it can inline JNI methods you wrote, than the
> answer is no.
> 
> -- Christian
> 

In fact I didn't meant intrinsics, but general native methods simple
enough to be inlined, at least conceptually. If I remember well, there
were some experiments at IBM/University of Toronto in this topic: that's
why I wondered about HotSpot.

Perhaps for another life...



More information about the mlvm-dev mailing list