Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Virtual threads are just objects in the heap, there may be millions of them. There is no API support for enumerating all virtual threads.

...

JDI VirtualThreads.allThreads() (and JDWP VirtualMachine/AllThreads) enumerates all active platform threads, as before.

Thread groups

Virtual threads are not active members of a thread group. 

JDI JDI ThreadGroupReference::threads (and JDWP ThreadGroupReference/Children) enumerate all active platform threads in the group, as before.

...

Option Name and ValueDescriptionDefault
enumeratevthreads=y|n   thread lists include vthreadsn
trackvthreads=some|all  track some or all vthreads someenumeratevthreads=y|n    thread lists include vthreadsy
fakevthreadstartevent=y|n  send fake start event when needed y

...