[project @ 2005-04-25 15:36:28 by simonmar]
authorsimonmar <unknown>
Mon, 25 Apr 2005 15:36:29 +0000 (15:36 +0000)
committersimonmar <unknown>
Mon, 25 Apr 2005 15:36:29 +0000 (15:36 +0000)
commitb050008e923eb5542deb3a3f7034ffcb2cb26a12
treec7c54a6c4a64c940e919f031c2813abfb9e9e3bd
parent8974a27fba33479109297890bd7b618a76eb6f68
[project @ 2005-04-25 15:36:28 by simonmar]
Partial support for deadlock detection in the threaded/SMP RTS.

The idea is to wait until a complete time slice has gone by without
running any Haskell code, and then try doing a GC to detect deadlocked
threads.

This kind of works: but we can only wake up a worker thread from the
signal handler if there's another worker running - we can't wake up the
current thread, it seems.
ghc/rts/Schedule.c
ghc/rts/Schedule.h
ghc/rts/Timer.c