eta icon indicating copy to clipboard operation
eta copied to clipboard

Allocate a dedicated thread to detect deadlocks in the runtime system

Open rahulmutt opened this issue 7 years ago • 0 comments

In certain extreme cases, it is possible for the runtime system to deadlock and lightweight threads to stall. An example of an extreme case is when all of the runtime system allocated threads are all blocked on a Java FFI call. In such a case, it is beneficial to have a separate, dedicated thread that monitors the progress of lightweight threads and will spawn new heavy threads as required if no progress is being made.

Note that this is mainly hypothetical - we have not yet observed this in practice.

rahulmutt avatar Nov 30 '18 13:11 rahulmutt