3 ms·
A template JIT is a bit that just generates machine code that is exactly like the bytecode. That is in contrast to something like a tracing JIT that uses runtim
by bjoli 6y ago
A template JIT is a bit that just generates machine code that is exactly like the bytecode. That is in contrast to something like a tracing JIT that uses runtime information to generate more optimal machine code.
One benefit of a template JIT is that the step to native compilation is a lot shorter than with a tracing JIT. Apart from being A LOT simpler. Debugging a tracing JIT is a special kind of hell for extra evil programmers.
- chrisseaton 6y agoThat's a 'template compiler' you're describing there, not a 'template interpreter'. OpenJDK doesn't include a 'template compiler'. Its lowest tier, C1, has a basic IR. OpenJDK does use a 'template interpreter'. https://github.com/openjdk/jdk/blob/master/src/hotspot/share/interpreter/templateInterpreter.cpp https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
- bjoli 6y agoSorry about that. Thanks for putting it straight.