summaryrefslogtreecommitdiff
path: root/rts/STM.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-01-30 09:46:37 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-01-30 10:50:14 +0000
commitdbefe7b83a4aee0ab42b432743d782912ac59543 (patch)
treece1c8fa3511b67485c975200e7b2c37fff302c78 /rts/STM.c
parenta23661d242e8dd55007c4aee8a053f35de7705bd (diff)
downloadhaskell-dbefe7b83a4aee0ab42b432743d782912ac59543.tar.gz
fix warnings
Diffstat (limited to 'rts/STM.c')
-rw-r--r--rts/STM.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/STM.c b/rts/STM.c
index 7400d57bab..eee0f46bbc 100644
--- a/rts/STM.c
+++ b/rts/STM.c
@@ -385,11 +385,12 @@ static void unpark_tso(Capability *cap, StgTSO *tso) {
// This way we can avoid sending further wakeup messages in the
// future.
lockTSO(tso);
- if (tso->why_blocked == BlockedOnSTM && tso->block_info.closure == STM_AWOKEN) {
+ if (tso->why_blocked == BlockedOnSTM &&
+ tso->block_info.closure == &stg_STM_AWOKEN_closure) {
TRACE("unpark_tso already woken up tso=%p", tso);
} else if (tso -> why_blocked == BlockedOnSTM) {
TRACE("unpark_tso on tso=%p", tso);
- tso->block_info.closure = STM_AWOKEN;
+ tso->block_info.closure = &stg_STM_AWOKEN_closure;
tryWakeupThread(cap,tso);
} else {
TRACE("spurious unpark_tso on tso=%p", tso);