projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49a8e5c
)
stmAddInvariantToCheck: add missing init of invariant->lock (#4057)
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 15 Jun 2010 12:36:43 +0000
(12:36 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 15 Jun 2010 12:36:43 +0000
(12:36 +0000)
rts/STM.c
patch
|
blob
|
history
diff --git
a/rts/STM.c
b/rts/STM.c
index
f98d201
..
3de42e2
100644
(file)
--- 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;
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
// 2. Allocate an StgInvariantCheckQueue entry, link it to the current trec