RFR: 8306446: java/lang/management/ThreadMXBean/Locks.java transient failures [v2]
Kevin Walls
kevinw at openjdk.org
Wed Jun 21 13:32:07 UTC 2023
On Wed, 21 Jun 2023 12:54:06 GMT, Kevin Walls <kevinw at 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 at 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
More information about the serviceability-dev
mailing list