Commit 612d2bc5 authored by Simon Marlow's avatar Simon Marlow
Browse files

stmAddInvariantToCheck: add missing init of invariant->lock (#4057)

parent 49a8e5c0
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment