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

Deprecate -XX:+UseNotificationThread

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 23
    • hotspot
    • None
    • svc
    • behavioral
    • low
    • Hide
      No issues with NotificationThread have been reported since its introduction in JDK 14.
      Search showed no discussions nor signs of usage of the flag.
      Show
      No issues with NotificationThread have been reported since its introduction in JDK 14. Search showed no discussions nor signs of usage of the flag.
    • add/remove/modify command line option

      Summary

      A NotificationThread was added in JDK 14 to resolve the problem that a notification event wasn't being posted by a thread that was known to the Java code. The -XX:+UseNotificationThread option was added, with a default of true, in case a customer found a problem with creating this new thread.

      Problem

      The UseNotificationThread option when false, reintroduces the bug that the thread was created to resolve. The code with this option as false also adds more work for the ServiceThread to do. The ServiceThread despite its name runs internal cleanup actions on behalf of the JVM.

      Solution

      Deprecate -XX:+UseNotificationThread in JDK 23, make obsolete in 24 and remove in 25.

      Specification

      Added to the arguments table:

      +  { "UseNotificationThread",        JDK_Version::jdk(23),  JDK_Version::jdk(24), JDK_Version::jdk(25) },

      String printed when the command line is printed:

      +          "(Deprecated) Use Notification Thread")                           \

            amenkov Alex Menkov
            coleenp Coleen Phillimore
            Daniel Daugherty, David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: