Details
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
- csr of
-
JDK-8256718 Obsolete the long term deprecated and aliased Trace flags
- Resolved