Why doesn't the JVM cache JIT compiled code?

前端 未结 5 1299
时光说笑
时光说笑 2020-11-28 19:30

The canonical JVM implementation from Sun applies some pretty sophisticated optimization to bytecode to obtain near-native execution speeds after the code has been run a few

5条回答
  •  遥遥无期
    2020-11-28 20:34

    An updated to the existing answers - Java 8 has a JEP dedicated to solving this:

    => JEP 145: Cache Compiled Code. New link.

    At a very high level, its stated goal is:

    Save and reuse compiled native code from previous runs in order to improve the startup time of large Java applications.

    Hope this helps.

提交回复
热议问题