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") \
- csr of
-
JDK-8329113 Deprecate -XX:+UseNotificationThread
-
- Resolved
-