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

Obsolete the unused AssertOnSuspendWaitFailure and TraceSuspendWaitFailures flags

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 17
    • hotspot
    • None
    • behavioral
    • minimal
    • These are old, rarely used diagnostic flags.
    • add/remove/modify command line option
    • Implementation

      Summary

      Obsolete the unused AssertOnSuspendWaitFailure and TraceSuspendWaitFailures flags

      Problem

      The AssertOnSuspendWaitFailure and TraceSuspendWaitFailures flags became unused in JDK16 and should have been obsoleted at the time.

      Solution

      Obsolete the flags now so that their use will generate a warning.

      Specification

      > +++ b/src/hotspot/share/runtime/arguments.cpp 
         >      // -------------- Obsolete Flags - sorted by expired_in --------------
      > +  { "AssertOnSuspendWaitFailure",   JDK_Version::undefined(), JDK_Version::jdk(17), JDK_Version::jdk(18) },
      > +  { "TraceSuspendWaitFailures",     JDK_Version::undefined(), JDK_Version::jdk(17), JDK_Version::jdk(18) },  
      
      > +++ b/src/hotspot/share/runtime/globals.hpp 
      > -  product(bool, AssertOnSuspendWaitFailure, false,                          \
      > -          "Assert/Guarantee on external suspend wait failure")              \
      > -                                                                            \
      > -  product(bool, TraceSuspendWaitFailures, false,                            \
      > -          "Trace external suspend wait failures")                           \

            dholmes David Holmes
            dholmes David Holmes
            Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: