private static void VerifyNoNonemptyEntryInListAfter(long lockID, ThreadLocalLockEntry afterEntry)
{
Debug.Assert(lockID != 0);
Debug.Assert(afterEntry != null);
for (ThreadLocalLockEntry currentEntry = afterEntry._next;
currentEntry != null;
currentEntry = currentEntry._next)
{
Debug.Assert(currentEntry._lockID != lockID || currentEntry.IsFree);
}
}