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

os::obsolete_option is obsolete and should be removed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • b20

      The function os::obsolete_option is an old mechanism to allow per-platform management of -X flags that are obsolete. It is empty except on Solaris where we have four obsolete options listed:

      -Xt // enable tracing
      -Xmt // enable method tracing
      -Xverifyheap
      -Xmaxjitcodesize

      Other than maxjitcodesize these flags have not existed for many years and have been marked as obsolete on Solaris since at least 1.4.0 back in 2002! I think it is time to get rid of these entries, and to remove this mechanism as we don't need it any more.

      -Xmaxcodejitsize is actually still a live flag (despite apparently being obsolete in 2002!) and is an alias for -XX:ReservedCodeCacheSize. It is processed before the check for obsolete_option so is actually accepted on all platforms. It should probably be cleaned up as a separate RFE and further it is incorrectly documented!

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: