[External] : Re: Dropped task -- feature or bug?
Alan Bateman
Alan.Bateman at oracle.com
Tue May 17 14:07:49 UTC 2022
On 17/05/2022 14:42, Brian S O'Neill wrote:
> A virtual thread which is blocked with a timeout performs some form of
> registration, does it not? Is there an expectation that virtual
> threads are more likely to be blocked with infinite timeouts, and that
> this blocking is frequent enough that the registration step is too
> costly?
>
> Perhaps it would make sense to add an option (system property) that
> would enable registration when a virtual thread is blocked, as a
> debugging tool?
A thread that parks with a timeout will continue when the waiting time
expires, so it can't be GC'ed.
If you really want to see these orphaned threads in the heap dump or
thread dump then you can run with -Djdk.trackAllThreads.
-Alan.
More information about the loom-dev
mailing list