Does the JVM have runtime branch prediction? If so, is there a way in Java code to prompt branch results?

As the name says:

I remember that in some C compilers (such as GCC) we can give a hint to the compiler about the likely results of branch prediction. Does the JVM have such a function?

Thank!

+5
source share
3 answers

If there is no new annotation that has eluded me, no.

, , . , , , C/++, "" , , , , : JVM .

+4

, jvm .

+1

All Articles