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

Deprecate and obsolete OldSize

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 23
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • Searching for affected flag doesn't return any blog posts/tutorials covering or suggesting using it, and one can achieve the same purpose using other sizing flags.
    • add/remove/modify command line option
    • Implementation

    Description

      Summary

      Deprecate the OldSize flag in JDK 23 and obsolete it in JDK 24, then remove in JDK 25.

      Problem

      Due to the intrinsic constraint: NewSize + OldSize == InitialHeapSize, if users specify all three flags with improper values, thereby violating this constraint, one flag value must be discarded. Discarding any one of them might come as a surprise to users.

      Solution

      Deprecate the OldSize flag in JDK 23 and obsolete it in JDK 24, then remove in JDK 25.

      Specification

         product(size_t, OldSize, ScaleForWordSize(4*M),                           \
      -          "Initial tenured generation size (in bytes)")                     \
      +          "(Deprecated) Initial tenured generation size (in bytes)")        \
                 range(0, max_uintx)                                               \

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: