[project @ 2005-10-12 12:53:15 by simonmar]
authorsimonmar <unknown>
Wed, 12 Oct 2005 12:53:15 +0000 (12:53 +0000)
committersimonmar <unknown>
Wed, 12 Oct 2005 12:53:15 +0000 (12:53 +0000)
commit9e10d632f946bae5dd9a9ccd199c8345ca696d15
treef43be7a6881cc3d80f3aa5cca2ebffe968cbe6bb
parent68f5bad2ae4d3342324d8a09102a9a4f9e49f896
[project @ 2005-10-12 12:53:15 by simonmar]
When blocking on a BLACKHOLE, we must wait until we have finished
manipulating the current thread's stack before we release sched_mutex,
otherwise another thread can pick up the thread from the
blackhole_queue and start running it.
ghc/rts/HeapStackCheck.cmm
ghc/rts/StgMiscClosures.cmm