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

Obsolete RAMFraction related flags

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 23
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • This flag has been deprecated since JDK 8/10 and, there are substitute flags.
    • add/remove/modify command line option
    • JDK

      Summary

      Obsolete the following deprecated flags:

      • MaxRAMFraction
      • MinRAMFraction
      • InitialRAMFraction
      • DefaultMaxRAMFraction

      Problem

      DefaultMaxRAMFraction was deprecated in JDK8 and Initial/Min/MaxRAMFraction were deprecated in JDK10. Remove their implementation to clean up the code base.

      Solution

      Obsolete these flags and remove their implementation.

      Specification

        product(uintx, MaxRAMFraction, 4,                                         \
                "Maximum fraction (1/n) of real memory used for maximum heap "    \
                "size. "                                                          \
                "Deprecated, use MaxRAMPercentage instead")                       \
                range(1, max_uintx)                                               \
                                                                                  \
        product(uintx, MinRAMFraction, 2,                                         \
                "Minimum fraction (1/n) of real memory used for maximum heap "    \
                "size on systems with small physical memory size. "               \
                "Deprecated, use MinRAMPercentage instead")                       \
                range(1, max_uintx)                                               \
                                                                                  \
        product(uintx, InitialRAMFraction, 64,                                    \
                "Fraction (1/n) of real memory used for initial heap size. "      \
                "Deprecated, use InitialRAMPercentage instead")                   \
                range(1, max_uintx)                                               \
                                                                                  \

            ayang Albert Yang
            ayang Albert Yang
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: