JDK-8306471 : Add virtual threads support to JDWP ThreadReference.Stop and JDI ThreadReference.stop()
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-04-19
  • Updated: 2025-04-24
  • Resolved: 2023-05-12
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 21
21 b23Fixed
Related Reports
Blocks :  
CSR :  
Causes :  
Duplicate :  
Relates :  
Description
JDK-8306034 is adding some virtual thread support to JVMTI StopThread. This will allow JDWP ThreadReference.Stop and JDI ThreadReference.stop() to have the same level support for virtual threads.

Mostly this is a spec update for JDWP and JDI, but there are also some minor changes needed to the ThreadReference.stop() handling of JDWP errors, and throwing the appropriate exceptions.

I don't believe any changes are needed in the debug agent since there are no new JVMTI errors being introduced, and the JVMTI errors being returned by StopThread are already properly converted to the appropriate JDWP errors. 
Comments
Changeset: d809823f Author: Chris Plummer <cjplummer@openjdk.org> Date: 2023-05-12 20:05:21 +0000 URL: https://git.openjdk.org/jdk/commit/d809823fe486dfa0fe0bf1c3deff31e81bbc5f28
12-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13548 Date: 2023-04-19 23:40:56 +0000
25-04-2023