On Wed, 21 Jun 2023 12:54:06 GMT, Kevin Walls <kev...@openjdk.org> wrote:
>> ThreadMXBean::getAllThreadsIds returns an array of the thread IDs of >> platform threads, it doesn't include virtual threads, so I don't know why >> this filter is added. > > Whitespace correction, thanks. The filter was because of a failure where it's called on a real thread that happens to own a VirtualThread lock, like: "ForkJoinPool-1-worker-1" daemon prio=5 Id=32 WAITING on java.lang.VirtualThread@289cb0b4 owned by "MainThread" Id=31 ...actually my comment at line 67 isn't exactly correct, will update it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14501#discussion_r1236959285