Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356097

AArch64: Obsolete -XX:+NearCPool option

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 25
    • hotspot
    • None
    • behavioral
    • minimal
    • Hide
      The risk is minimal. The NearCpool option had no effect in most configurations. When explicitly disabled via -XX:-NearCpool, it could trigger VM failures when used together with ShenandoahGC. It is unlikely that the option was relied upon in practice, and its removal is not expected to cause issues for users.
      Show
      The risk is minimal. The NearCpool option had no effect in most configurations. When explicitly disabled via -XX:-NearCpool, it could trigger VM failures when used together with ShenandoahGC. It is unlikely that the option was relied upon in practice, and its removal is not expected to cause issues for users.
    • add/remove/modify command line option
    • JDK

      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"

            bulasevich Boris Ulasevich
            bulasevich Boris Ulasevich
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: