class loader so it inherits the current context class loader.
Consider the following sequence where each module has a dedicated class loader (e.g. web applications in a Servlet container).
calls GC.requestLatency(long) which starts the Daemon thread.
GC.requestLatency(long) and the Daemon thread continues.
thread continues because of the LatencyRequest from Module B.
context class loader field of the Daemon thread.
The class loader from module A is eligible for GC.
The class loader from module A is not eligible for GC.
Trigger the creation of the thread with a thread context class loader than is never going to be eligible for GC.