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

Product variable PrefetchFieldsAhead is unused and should be removed

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 19
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • This flag has had no affect since JDK 6. It is unlikely anyone still uses it.
    • add/remove/modify command line option
    • Implementation

      Summary

      Make the "PrefetchFieldsAhead" option obsolete in JDK19.

      Problem

      Having an option that doesn't change any behaviour is unhelpful, and risks confusion.

      Solution

      The option can be removed and added to the list of obsolete options for JDK 19 and then expired in JDK 20. This skips the "deprecated" step as the functionality was removed during JDK6.

      It was removed in the JDK6 time frame (2008) by JDK-6420645: "Create a vm that uses compressed oops for up to 32gb heapsizes"

      Specification

      Mark the "PrefetchFieldsAhead" option as obsolete from JDK19:

       { "PrefetchFieldsAhead",          JDK_Version::undefined(), JDK_Version::jdk(19), JDK_Version::jdk(20) },

            smonteith Stuart Monteith
            drwhite Derek White
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: