summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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