Java Amazon Corretto 和 OpenJDK 的差异

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/53305934/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 00:46:40  来源:igfitidea点击:

Differences Amazon Corretto and OpenJDK

javacorretto

提问by Kris

What are the differences between Amazon Correttoand OpenJDK(and Oracle's OpenJDK- but there is already a ticket about this)? Corretto is a OpenJDK version 8 implementation. Both are free and seem to run on most systems (Linux, Mac OS and Windows). So far Corretto is only in preview, but this will change soon. Corretto's documentationdoesn't say much about differences. Are there differences in e.g. performance, garbage collection? Why would I prefer one over the other? Would you use Corretto outside of AWS?

Amazon CorrettoOpenJDK(以及Oracle 的 OpenJDK- 但已经有关于此的票)之间有什么区别?Corretto 是 OpenJDK 版本 8 的实现。两者都是免费的,并且似乎可以在大多数系统(Linux、Mac OS 和 Windows)上运行。到目前为止,Corretto 仅处于预览阶段,但这很快就会改变。Corretto 的文档并没有过多说明差异。性能、垃圾收集等方面是否存在差异?为什么我更喜欢一个?您会在 AWS 之外使用 Corretto 吗?

回答by Jay

From Amazon's description:

来自亚马逊的描述

"Patches and improvements in Corretto enable Amazon to address high-scale, real-world service concerns, meeting heavy performance and scalability demands. We're making these available to customers with no-cost, long-term support, with quarterly updates including bug fixes and security patches. AWS will also provide urgent fixes to customers outside of the quarterly schedule"

“Corretto 中的补丁和改进使亚马逊能够解决大规模、现实世界的服务问题,满足大量的性能和可扩展性需求。我们通过免费的长期支持向客户提供这些服务,并提供包括错误在内的季度更新修复和安全补丁。AWS 还将在季度计划之外为客户提供紧急修复”

So Corretto has tweaks that are specific to performance (e.g. for server or cloud applications), and also additional bug fixes that users can take advantage of that aren't necessarily in OpenJDK proper yet. Also with this Amazon is offering proper LTS support of their build, as other commercial companies are starting to do for the JDK (Oracle and Azul come to mind, as well as others).

因此,Corretto 具有特定于性能的调整(例如,针对服务器或云应用程序),以及用户可以利用的其他错误修复,这些在 OpenJDK 中还不一定适用。此外,亚马逊为其构建提供适当的 LTS 支持,正如其他商业公司开始为 JDK 做的那样(Oracle 和 Azul 以及其他公司)。

回答by Nitsan Wakart

The patches applied are listed in the following pages:

应用的补丁在以下页面中列出:

I am not copying over as the list is going to grow over time, but the focus seems to be bug fixes and performance fixes patches and backports.

我不会复制,因为列表会随着时间的推移而增长,但重点似乎是错误修复和性能修复补丁和向后移植。

回答by Dina Bogdan

A very detailed presentation about Amazon Corretto by James Gosling can be found here

可以在此处找到 James Gosling 关于 Amazon Corretto 的非常详细的介绍

回答by DavesPlanet

I can tell you we have found a few subtle differences. We have not identified the root cause of the differences but we do know that Jasper reports generated with Corretto have minor differences in some of the offset numbers, such as leadingOffset="-2.9667969" in corretto vs "-2.737793" in the Oracle JVM. There is no visual difference but it led to failure in golden master tests. Additionally some very old deprecated tools such as text to tiff rendering are not included. Other than that we have converted many projects over to Corretto without issue.

我可以告诉你,我们发现了一些细微的差异。我们尚未确定差异的根本原因,但我们确实知道使用 Corretto 生成的 Jasper 报告在某些偏移数字上存在细微差异,例如 corretto 中的leadingOffset="-2.9667969" 与 Oracle JVM 中的“-2.737793”。没有视觉差异,但它导致黄金大师测试失败。此外,不包括一些非常旧的弃用工具,例如文本到 tiff 渲染。除此之外,我们已将许多项目顺利转换为 Corretto。