-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b26
Thread.stop is inherently unsafe and has been deprecated since Java 1.2. In addition to being unsafe for applications and libraries to use, it works inconsistently and creates a burden on the runtime to have to deal with "async" exceptions at sensitive times. Project Loom is planning virtual threads that will not support Thread.stop. All told, it's time to terminally deprecate this method so it can be degraded and removed in the future.
Terminally deprecating Thread.stop has no impact on JVM TI StopThread. This is used by debugger to have threads throw an exception when resumed at a breakpoint. Further work is required to find an alternative before deprecating the JVM TI function (and corresponding method in JDI and command in JDWP).
Terminally deprecating Thread.stop has no impact on JVM TI StopThread. This is used by debugger to have threads throw an exception when resumed at a breakpoint. Further work is required to find an alternative before deprecating the JVM TI function (and corresponding method in JDI and command in JDWP).
- csr for
-
JDK-8277987 Terminally deprecate Thread.stop
- Closed
- relates to
-
JDK-8283467 runtime/Thread/StopAtExit.java needs updating
- Resolved
-
JDK-8289610 Degrade Thread.stop
- Resolved
There are no Sub-Tasks for this issue.