JDK-8265314 : Obsolete the unused AssertOnSuspendWaitFailure and TraceSuspendWaitFailures flags
  • Type: CSR
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 17
  • Submitted: 2021-04-15
  • Updated: 2021-04-17
  • Resolved: 2021-04-17
Related Reports
CSR :  
Description
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")                           \



Comments
Moving to Approved.
17-04-2021

[~dcubed], or [~rehn] could you please review this CSR request. Thanks.
16-04-2021