Fix another subtle shutdown deadlock
authorSimon Marlow <marlowsd@gmail.com>
Thu, 13 Nov 2008 16:00:05 +0000 (16:00 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 13 Nov 2008 16:00:05 +0000 (16:00 +0000)
commitdddfba386d413d575c1d0be2a26f0cf1417fa5b6
treebe516487fb461d3840de1fdddad4e59fd3e3c4f2
parent6d31658583b97f84313cc7837a0eaeb4060022a7
Fix another subtle shutdown deadlock
The problem occurred when a thread tries to GC during shutdown.  In
order to GC it has to acquire all the Capabilities in the system, but
during shutdown, some of the Capabilities have already been closed and
can never be acquired.
rts/Schedule.c