Summary:
The AArch64-specific VM option -XX:+NearCpool is obsolete and will be removed.
Problem:
The NearCpool flag was used to control whether AArch64 code generation should assume that the constant pool is located close to the code. However, the alternative behavior (a distant constant pool) did not correspond to any real configuration; the option was untested and did not function correctly. The code handling this was removed in JDK-8345225, and the flag has no effect since then.
Solution:
The NearCpool flag is marked as obsolete starting with JDK 25. It is scheduled for removal in a future release.
Specification:
No API or specification changes. This change affects the JVM command-line interface. Use of -XX:-NearCpool will generate the usual warning for an obsolete VM option: "OpenJDK 64-Bit Server VM warning: Ignoring option NearCpool; support was removed in 25.0"
- csr of
-
JDK-8356095 AArch64: Obsolete -XX:+NearCPool option
-
- Resolved
-