Call for Discussion: New Project: Leyden

栏目: IT技术 · 发布时间: 5年前

mark.reinhold at oracle.com mark.reinhold at oracle.com

Mon Apr 27 16:38:55 UTC 2020
I hereby invite discussion of a new Project, Leyden, whose primary goal
will be to address the long-term pain points of Java’s slow startup time,
slow time to peak performance, and large footprint.

Leyden will address these pain points by introducing a concept of _static
images_ to the Java Platform, and to the JDK.

  - A static image is a standalone program, derived from an application,
    which runs that application -- and no other.

  - A static image is a closed world: It cannot load classes from outside
    the image, nor can it spin new bytecodes at run time.

These two constraints enable build-time analyses that can remove unused
classes and identify class initializers which can be run at build time,
thereby reducing both the size of the image and its startup time.  These
constraints also enable aggressive ahead-of-time compilation, thereby
reducing the image’s time to peak performance.

Static images are not for everyone, due to the closed-world constraint,
nor are they for every type of application.  They often require manual
configuration in order to achieve the best results.  We do, however,
expect the results to be worthwhile in important deployment scenarios
such as small embedded devices and the cloud.

Project Leyden will take inspiration from past efforts to explore this
space, including the GNU Compiler for Java [1] and the Native Image
feature of GraalVM [2].  Leyden will add static images to the Java
Platform Specification, and we expect that GraalVM will evolve to
implement that Specification.  Developers who use only the standard,
specified static-image feature will then be able to switch with ease
between Leyden (in the JDK), Native Image (in GraalVM), and whatever
other conforming implementations may arise, choosing amongst tradeoffs
of compile time, startup time, and image size.

We do not intend to implement Leyden by merging the Native Image code
from GraalVM into the JDK.  Leyden will, rather, be based upon existing
components in the JDK such as the HotSpot JVM, the `jaotc` ahead-of-time
compiler [3], application class-data sharing [4], and the `jlink` linking
tool [5].

I propose to lead this Project with an initial set of Reviewers that
includes, but is not limited to, Alex Buckley, Bob Vandette, Claes
Redestad, Igor Veresov, Ioi Lam, Mandy Chung, and Vladimir Kozlov.

This Project will start with a clone of the current JDK main-line
release, JDK 15, and track main-line releases going forward.  We expect
to deliver Leyden over time, in a series of JEPs that will likely span
multiple feature releases.

Comments?

- Mark


[1] <a href="https://en.wikipedia.org/wiki/GNU_Compiler_for_Java">https://en.wikipedia.org/wiki/GNU_Compiler_for_Java</a>
[2] <a href="https://www.graalvm.org/docs/reference-manual/native-image/">https://www.graalvm.org/docs/reference-manual/native-image/</a>
[3] <a href="https://openjdk.java.net/jeps/295">https://openjdk.java.net/jeps/295</a>
[4] <a href="https://openjdk.java.net/jeps/310">https://openjdk.java.net/jeps/310</a>
[5] <a href="https://openjdk.java.net/jeps/282">https://openjdk.java.net/jeps/282</a>
More information about the discuss mailing list

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

乔纳森传

乔纳森传

利恩德·卡尼 / 汪琪 岳卉 王文雅 / 中信出版社 / 2014-1-1 / 49

抛开苹果公司,单就设计行业来讲,乔纳森也是一个特殊的人物。他推动了设计行业的大变革:不再为产品增加看起来炫得多的配件,而是要去掉多余的东西。 ——陈向东 终于有一本书能够如此地接地气:它不再关注那位神一样的乔布斯,而是关注那位站在神的背后,同样具有神一样光环的乔纳森。 ——孙陶然 乔纳森•艾夫把他自己对科学、人文、艺术,乃至整个世界的感知尽数渗透进苹果的设计和审美之中,他是......一起来看看 《乔纳森传》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具