As I understand there is no clear rule to determine whether Java method will be JITed or interpreted while call.
So is there somehow to tell JVM that I need a certain method to be JITed. And is there a way to know for sure which method will be JITed and which not.
As I understand there is no clear rule to determine whether Java method will
Share
As far as I know you don’t know (from inside the JVM) and can not enforce a method being JITed or not, but using
-XX:+PrintCompilationJVM argument you can watch the JIT compiler doing it’s work and check if a method gets JITed in that particular run of the program or not.