Fix #2637: conc032(threaded2) failure
authorSimon Marlow <marlowsd@gmail.com>
Wed, 1 Oct 2008 13:55:49 +0000 (13:55 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 1 Oct 2008 13:55:49 +0000 (13:55 +0000)
commitc151739a1831546baa9c3f4a55f93ffc0b38bf9d
treed7a3b522f9470547c8f7f91a7b2b2b95307d203d
parent02e3571607b7c0bf460cdac1e02fa0ddcd6c4a8b
Fix #2637: conc032(threaded2) failure
There was a race condition whereby a thread doing throwTo could be
blocked on a thread that had finished, and the GC would detect this
as a deadlock rather than raising the pending exception.  We can't
close the race, but we can make the right thing happen when the GC
runs later.
rts/sm/MarkWeak.c