- Loading...
JDI VirtualThreads.allThreads() do not enumerate virtual threads
JDWP VirtualMachine/AllThreads command
Thread groups
Virtual threads are not active members of a thread group
JDI ThreadGroupReference::threads does not include virtual threads
JDWP ThreadGroupReference/Children command
Thread start/end events
New JDI ThreadStartRequest/ThreadEndRequest removeVirtualThreadFilter method to virtual events for virtual threads, filter is opt-out
New JDWP EventRequest/Set VirtualThreadsExclude filter to filter thread start/end events for virtual threads, filter is opt-in
Test if a thread is a virtual thread
New JDI ThreadReference::isVirtual
New JDWP ThreadReference/IsVirtual
Features not implements for virtual threads:
JDI ThreadReference::stop / JDWP ThreadReference/Stop
JDI ThreadReference::interrupt / JDWP ThreadReference/Interrupt
Debuggers and tools using the Java Debug Interface API observe the following differences:
As a temporary measure to support existing IDEs/debugger releases, the JDWP agent tracks virtual threads so that VirtualMachine::allThreads and ThreadGroupReference::threads will enumerate virtual threads. This is not a scalable solution and highly unsuited to environments where a debugger is attached to a running VM.