# JEP 541:弃用 macOS/x64 移植版本(以备后续移除)
来源:https://openjdk.org/jeps/541
所有者:Mikael Vidstedt
类型:特性
范围:实现
状态:候选
讨论:hotspot dash dev at openjdk dot org
工作量:S
时长:S
评审人:Erik Joelsson
创建时间:2026/06/05 22:47
更新时间:2026/07/23 15:20
问题编号:8386091 (https://bugs.openjdk.org/browse/JDK-8386091)
## 摘要
弃用 macOS/x64 移植版本,计划在未来的版本中将其移除,以降低维护成本。
## 动机
苹果公司已将其硬件产品过渡到 AArch64 处理器架构,并逐步停止对 x64 的支持。因此,Oracle 工程师将从 JDK 27 起停止维护 macOS/x64 移植版本。维护该移植版本是一个沉重的负担。
## 描述
尝试配置 macOS/x64 构建将产生如下输出:
``
$ bash ./configure
...
checking compilation type... native
configure: error: The macOS/x64 port is deprecated and may be removed in a future release. Use --enable-deprecated-ports to suppress this error.
configure exiting with result code 1
$
``
新的构建配置选项`--enable-deprecated-ports`将抑制该错误并继续执行:
``
$ bash ./configure --enable-deprecated-ports
...
checking compilation type... native
configure: WARNING: The macOS/x64 port is deprecated and may be removed in a future release.
...
Build performance summary:
* Cores to use: 32
* Memory limit: 96601 MB
The following warnings were produced. Repeated here for convenience:
WARNING: The macOS/x64 port is deprecated and may be removed in a future release.
$
``
无法保证该移植版本能够成功构建,更不用说正常工作了。
为了不阻碍主线开发,macOS/x64 将在 JDK 仓库的 GitHub Actions 中默认禁用。
此外,macOS/x64 移植版本以及相关的移植特定功能将在相关 JDK 文档中注明为“已弃用,以备移除”。
## 备选方案
与之前的移植版本弃用类似,另一种方案是,一组可信赖的开发者明确表示愿意继续维护该移植版本。如果在当前 JEP 被集成之前发生这种情况,则可以撤销本 JEP。如果在当前 JEP 被集成之后、但在移植版本被移除之前发生这种情况,则可以通过后续的 JEP 来撤销弃用。