
How Does the Just in Time Compiler for Java Works?The
working of the Just-In-Time compiler is more or less the same for all the JIT
compilers. The source code is compiled to the bytecode by the Java Virtual Machine
(JVM). The address of the JIT compiler itself is placed in the V-table and this address is called during execution and the JIT compiler executes the native code and stores that address to the V-table. And from now on this address is called whenever that method is called and the native code is executed. Only during the first call to a method it is compiled and for the subsequent calls the native code for that particular method is called. The V-table maintains the addresses of the native code for all the methods that are compiled. V-table also maintains another table which has the addresses of the bytecode itself in case there is a need to compile it for the first time. SPEC Releases Free SPECjvm2008 Benchmark (Centre Daily Times) SPEC Releases Free SPECjvm2008 Benchmark (Business Wire via Yahoo! Finance) Linked by Eugenia Loli-Queru on Wed 8th Mar 2006 18:13 UTC (OS News) Visit
.NET Programming Tutorial Homepage ______________________________________________________ |