<bdo id='kNIa9'></bdo><ul id='kNIa9'></ul>
  1. <i id='kNIa9'><tr id='kNIa9'><dt id='kNIa9'><q id='kNIa9'><span id='kNIa9'><b id='kNIa9'><form id='kNIa9'><ins id='kNIa9'></ins><ul id='kNIa9'></ul><sub id='kNIa9'></sub></form><legend id='kNIa9'></legend><bdo id='kNIa9'><pre id='kNIa9'><center id='kNIa9'></center></pre></bdo></b><th id='kNIa9'></th></span></q></dt></tr></i><div id='kNIa9'><tfoot id='kNIa9'></tfoot><dl id='kNIa9'><fieldset id='kNIa9'></fieldset></dl></div>

  2. <tfoot id='kNIa9'></tfoot>

      <small id='kNIa9'></small><noframes id='kNIa9'>

      <legend id='kNIa9'><style id='kNIa9'><dir id='kNIa9'><q id='kNIa9'></q></dir></style></legend>

      桌面上的 JVM 是否使用 JIT 编译?

      Do JVMs on Desktops Use JIT Compilation?(桌面上的 JVM 是否使用 JIT 编译?)

            <tbody id='hKBfS'></tbody>
          <tfoot id='hKBfS'></tfoot>

            <bdo id='hKBfS'></bdo><ul id='hKBfS'></ul>
          • <legend id='hKBfS'><style id='hKBfS'><dir id='hKBfS'><q id='hKBfS'></q></dir></style></legend>

            1. <small id='hKBfS'></small><noframes id='hKBfS'>

                <i id='hKBfS'><tr id='hKBfS'><dt id='hKBfS'><q id='hKBfS'><span id='hKBfS'><b id='hKBfS'><form id='hKBfS'><ins id='hKBfS'></ins><ul id='hKBfS'></ul><sub id='hKBfS'></sub></form><legend id='hKBfS'></legend><bdo id='hKBfS'><pre id='hKBfS'><center id='hKBfS'></center></pre></bdo></b><th id='hKBfS'></th></span></q></dt></tr></i><div id='hKBfS'><tfoot id='hKBfS'></tfoot><dl id='hKBfS'><fieldset id='hKBfS'></fieldset></dl></div>
                本文介绍了桌面上的 JVM 是否使用 JIT 编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我总是遇到声称 Java 被解释的文章.我知道 Oracle 的 HotSpot JRE 提供即时编译,但是对于大多数桌面用户来说是这样吗?例如,如果我通过以下方式下载 Java:http://www.java.com/en/download,这会包括 JIT 编译器吗?

                I always come across articles which claim that Java is interpreted. I know that Oracle's HotSpot JRE provides just-in-time compilation, however is this the case for a majority of desktop users? For example, if I download Java via: http://www.java.com/en/download, will this include a JIT Compiler?

                推荐答案

                是的,绝对的.声称 Java 是解释型的文章通常由不了解 Java 工作原理或不了解解释型含义的人撰写.

                Yes, absolutely. Articles claiming Java is interpreted are typically written by people who either don't understand how Java works or don't understand what interpreted means.

                话虽如此,HotSpot 有时会解释代码 - 这是一件好事.肯定有任何应用程序的一部分(通常在启动时)只执行一次.如果您可以比 JIT 编译它更快地解释它,为什么还要为开销而烦恼呢?另一方面,我对Java 被解释"文章的体验是,这不是他们的意思:)

                Having said that, HotSpot will interpret code sometimes - and that's a good thing. There are definitely portions of any application (around startup, usually) which are only executed once. If you can interpret that faster than you can JIT compile it, why bother with the overhead? On the other hand, my experience of "Java is interpreted" articles is that this isn't what they mean :)

                T. J. Crowder 的观点是:是的,从 java.com 下载的 JVM 将是 HotSpot.然而,HotSpot 有两种不同的 JIT——服务器和桌面.一句话总结差异,桌面 JIT 旨在快速启动应用程序,而服务器 JIT 更侧重于高性能随着时间的推移:服务器应用程序通常运行很长时间,因此花费大量时间优化它们从长远来看是有回报的.

                To take T. J. Crowder's point in: yes, the JVM downloaded from java.com will be HotSpot. There are two different JITs for HotSpot, however - server and desktop. To sum up the differences in a single sentence, the desktop JIT is designed to start apps quickly, whereas the server JIT is more focused on high performance over time: server apps typically run for a very long time, so time spent optimising them really heavily pays off in the long run.

                这篇关于桌面上的 JVM 是否使用 JIT 编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                Why a sawtooth shaped graph?(为什么是锯齿形图形?)
              • <tfoot id='Drdz0'></tfoot>
                • <bdo id='Drdz0'></bdo><ul id='Drdz0'></ul>
                  • <small id='Drdz0'></small><noframes id='Drdz0'>

                        <tbody id='Drdz0'></tbody>

                          <i id='Drdz0'><tr id='Drdz0'><dt id='Drdz0'><q id='Drdz0'><span id='Drdz0'><b id='Drdz0'><form id='Drdz0'><ins id='Drdz0'></ins><ul id='Drdz0'></ul><sub id='Drdz0'></sub></form><legend id='Drdz0'></legend><bdo id='Drdz0'><pre id='Drdz0'><center id='Drdz0'></center></pre></bdo></b><th id='Drdz0'></th></span></q></dt></tr></i><div id='Drdz0'><tfoot id='Drdz0'></tfoot><dl id='Drdz0'><fieldset id='Drdz0'></fieldset></dl></div>
                          <legend id='Drdz0'><style id='Drdz0'><dir id='Drdz0'><q id='Drdz0'></q></dir></style></legend>