git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7250
/* EXPOSITION */
/* Place where lock first came to the attention of Helgrind. */
ExeContext* appeared_at;
- /* Place where the lock most recently made an unlocked->locked
- transition. */
+ /* If the lock is held, place where the lock most recently made
+ an unlocked->locked transition. Must be sync'd with .heldBy:
+ either both NULL or both non-NULL. */
ExeContext* acquired_at;
/* USEFUL-STATIC */
Addr guestaddr; /* Guest address of lock */
HG_(deleteBag)( lk->heldBy );
lk->heldBy = NULL;
lk->heldW = False;
+ lk->acquired_at = False;
}
tl_assert( !lk->heldBy );
tl_assert( is_sane_LockN(lk) );