native methods inlining
Christian Thalinger
Christian.Thalinger at Sun.COM
Mon Nov 16 07:39:51 PST 2009
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
More information about the mlvm-dev
mailing list