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

Obsolete the long term deprecated and aliased Trace flags

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      These trace flags are primarily used for debugging purposes.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      JDK

      Description

      Summary

      The following trace flags were deprecated in previous releases and should be obsolesced in JDK-16. Users can get the same tracing information that was provided by these flags by using unified logging flags.

      Trace flags deprecated in JDK-9:

      • TraceExceptions
      • TraceClassLoading
      • TraceClassLoadingPreorder
      • TraceClassUnloading
      • TraceClassPaths
      • TraceClassResolution
      • TraceLoaderConstraints
      • TraceSafepointCleanupTime
      • TraceBiasedLocking
      • TraceMonitorInflation
      • TraceRedefineClasses
      • TraceJVMTIObjectTagging

      Trace flag PrintSharedSpaces was deprecated in JDK-10, PrintJNIResolving in JDK-14, and TraceInvokeDynamic and TraceMethodHandles in JDK-15.

      Problem

      JVM trace flags that were deprecated in previous releases should be obsolesced in JDK-16.

      Solution

      By obsoleting these flags, the JVM will no longer translate the flags into their unified logging alternative. Instead, the JVM will ignore these flags.

      Specification

      The descriptions of the above flags will be moved from the Deprecated Java Options section of the Java man page to the Obsolete Java Options section.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                dholmes David Holmes
                Reviewed By:
                Coleen Phillimore
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: