From 2859b9f49c3509ea07d3aaf5d9b746b96ede9e8d Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 27 Sep 2015 17:40:23 +0000 Subject: [PATCH] [NTOS:EX] - Remove push lock asserts that are prone to race conditions CORE-10267 #resolve svn path=/trunk/; revision=69383 --- reactos/ntoskrnl/include/internal/ex.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/ex.h b/reactos/ntoskrnl/include/internal/ex.h index 3c08885de7f..83264a45b18 100644 --- a/reactos/ntoskrnl/include/internal/ex.h +++ b/reactos/ntoskrnl/include/internal/ex.h @@ -1032,7 +1032,6 @@ ExAcquirePushLockShared(PEX_PUSH_LOCK PushLock) /* Sanity checks */ ASSERT(PushLock->Locked); - ASSERT(PushLock->Waiting || PushLock->Shared > 0); } /*++ @@ -1133,7 +1132,6 @@ ExReleasePushLockShared(PEX_PUSH_LOCK PushLock) /* Sanity checks */ ASSERT(PushLock->Locked); - ASSERT(PushLock->Waiting || PushLock->Shared > 0); /* Try to clear the pushlock */ OldValue.Value = EX_PUSH_LOCK_LOCK | EX_PUSH_LOCK_SHARE_INC; @@ -1173,7 +1171,6 @@ ExReleasePushLockExclusive(PEX_PUSH_LOCK PushLock) /* Sanity checks */ ASSERT(PushLock->Locked); - ASSERT(PushLock->Waiting || PushLock->Shared == 0); /* Unlock the pushlock */ OldValue.Value = InterlockedExchangeAddSizeT((PSIZE_T)PushLock,