JDK-8293592 : Remove JVM_StopThread, stillborn, and related cleanup
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-09
  • Updated: 2022-10-03
  • Resolved: 2022-09-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b17Fixed
Related Reports
Blocks :  
Description
JDK-8299610 proposes to degrade Thread.stop so that it throws UOE unconditionally.  To keep things manageable, it will initially leave JVM_StopThread in place. This issue tracks removing JVM_StopThread and related cleanup that can be done once Thread.stop has been degraded. In particular, it may be possible to remove Thread.stillborn as is should no longer be possible to send an async exception to an unstarted thread.
Comments
Changeset: 763d4bf0 Author: David Holmes <dholmes@openjdk.org> Date: 2022-09-27 21:03:50 +0000 URL: https://git.openjdk.org/jdk/commit/763d4bf0749e54f74821e5155f672ed24d6f2fcd
27-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10400 Date: 2022-09-23 06:17:34 +0000
23-09-2022

We remove JVM_StopThread, all references to the stillborn field, and (similarly to what has been done in the JDK code) remove all special handling of ThreadDeath.
23-09-2022