Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's Tiered Compilation in Java 7? [closed]

Tags:

java

jvm

java-7

Please help me knowing tiered compilation in deeper, which was a new feature in Java SE 7.

Thanks in advance.

like image 303
Aryan Venkat Avatar asked May 29 '13 10:05

Aryan Venkat


1 Answers

Read here

Tiered Compilation

Tiered compilation, introduced in Java SE 7, brings client startup speeds to the server VM. Normally, a server VM uses the interpreter to collect profiling information about methods that is fed into the compiler. In the tiered scheme, in addition to the interpreter, the client compiler is used to generate compiled versions of methods that collect profiling information about themselves. Since the compiled code is substantially faster than the interpreter, the program executes with greater performance during the profiling phase. In many cases, a startup that is even faster than with the client VM can be achieved because the final code produced by the server compiler may be already available during the early stages of application initialization. The tiered scheme can also achieve better peak performance than a regular server VM because the faster profiling phase allows a longer period of profiling, which may yield better optimization.

like image 70
Scorpion Avatar answered Oct 15 '22 00:10

Scorpion