Not resuming Virtual Threads?

Alen Vrečko alen.vrecko at gmail.com
Mon Jul 6 08:30:42 UTC 2020


I think a simple application level debug tool could be done, just like
Netty does ResourceLeakDetector, for finding continuations that get "lost".
Something like this:

ContinuationLeakDetector.register(virtualThread);

> Continuation#X GC'ed prematurely. Created at: ....

Maybe something for someone doing the custom scheduler to consider or have
it in the loom and enabled with something like
-Dloom.leakdetector=(disabled, sampling, tracing).

Alen


More information about the loom-dev mailing list