Explicit Branch-prediction in JVM-based langauges?

32 views Asked by At

Is there any way for JVM-based languages to indicate to the interpreter that a branch is cold or unlikely etc.?

Specifically I mean some kind of branch attribute like the Linux Kernel's unlikely() and likely() macros.

How could one indicate this in an assembler (like Krakatau or Jasmin)? Or any JVM-based language, like Scala or Java?

0

There are 0 answers