java - 什么是 Java 7 中的分层编译?

标签 java jvm java-7

<分区>

请帮助我更深入地了解分层编译,这是 Java SE 7 中的一项新功能。

提前致谢。

最佳答案

阅读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.

关于java - 什么是 Java 7 中的分层编译?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16811140/

相关文章:

java - 为什么 JVM 显示错误的时区 (UTC+02 :00) Istanbul?

java - 运行 jmap 无法打开套接字文件

groovy - 如果我也使用 Java 7,我应该使用 Groovy 的 @CompileStatic

java - 如何访问 Java 中每个循环的下一个元素?

Java Spring resttemplate 字符编码

java - 如何从 Java 连接到 Websphere 数据源?

java - 调整 GC 以进行大型缓存刷新

java - 为什么 Java multi-catch 不能处理通过子类关联的类型?

java - 新的 jre7 try block 资源

java - 遍历 HashMap