summaryrefslogtreecommitdiff
path: root/rts/STM.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-06-15 12:36:43 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-06-15 12:36:43 +0000
commit612d2bc50d85bd4f24738e00e70b79cd5b714fe0 (patch)
tree012fae39ade60761ab057e237568162872c6d4a4 /rts/STM.c
parent49a8e5c021009430d373d6224b29004c7d18c408 (diff)
downloadhaskell-612d2bc50d85bd4f24738e00e70b79cd5b714fe0.tar.gz
stmAddInvariantToCheck: add missing init of invariant->lock (#4057)
Diffstat (limited to 'rts/STM.c')
-rw-r--r--rts/STM.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/STM.c b/rts/STM.c
index f98d201b07..3de42e2090 100644
--- a/rts/STM.c
+++ b/rts/STM.c
@@ -1179,6 +1179,7 @@ void stmAddInvariantToCheck(Capability *cap,
SET_HDR (invariant, &stg_ATOMIC_INVARIANT_info, CCS_SYSTEM);
invariant -> code = code;
invariant -> last_execution = NO_TREC;
+ invariant -> lock = 0;
// 2. Allocate an StgInvariantCheckQueue entry, link it to the current trec