mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 16:43:00 +00:00
[RXCE]
Make code that deals with DBG stuff only built in DBG builds CORE-11327 CORE-13610 svn path=/trunk/; revision=75468
This commit is contained in:
parent
1332e273a2
commit
54bb40541b
1 changed files with 10 additions and 0 deletions
|
@ -500,8 +500,10 @@ RxAllocateFcbObject(
|
||||||
|
|
||||||
Fcb->NonPaged = NonPagedFcb;
|
Fcb->NonPaged = NonPagedFcb;
|
||||||
ZeroAndInitializeNodeType(Fcb->NonPaged, RDBSS_NTC_NONPAGED_FCB, sizeof(NON_PAGED_FCB));
|
ZeroAndInitializeNodeType(Fcb->NonPaged, RDBSS_NTC_NONPAGED_FCB, sizeof(NON_PAGED_FCB));
|
||||||
|
#if DBG
|
||||||
Fcb->CopyOfNonPaged = NonPagedFcb;
|
Fcb->CopyOfNonPaged = NonPagedFcb;
|
||||||
NonPagedFcb->FcbBackPointer = Fcb;
|
NonPagedFcb->FcbBackPointer = Fcb;
|
||||||
|
#endif
|
||||||
|
|
||||||
Fcb->InternalSrvOpen = SrvOpen;
|
Fcb->InternalSrvOpen = SrvOpen;
|
||||||
Fcb->InternalFobx = Fobx;
|
Fcb->InternalFobx = Fobx;
|
||||||
|
@ -1742,7 +1744,9 @@ RxCreateRxContext(
|
||||||
|
|
||||||
DPRINT("RxCreateRxContext(%p, %p, %u)\n", Irp, RxDeviceObject, InitialContextFlags);
|
DPRINT("RxCreateRxContext(%p, %p, %u)\n", Irp, RxDeviceObject, InitialContextFlags);
|
||||||
|
|
||||||
|
#if DBG
|
||||||
InterlockedIncrement((volatile LONG *)&RxFsdEntryCount);
|
InterlockedIncrement((volatile LONG *)&RxFsdEntryCount);
|
||||||
|
#endif
|
||||||
InterlockedIncrement((volatile LONG *)&RxDeviceObject->NumberOfActiveContexts);
|
InterlockedIncrement((volatile LONG *)&RxDeviceObject->NumberOfActiveContexts);
|
||||||
|
|
||||||
/* Allocate the context from our lookaside list */
|
/* Allocate the context from our lookaside list */
|
||||||
|
@ -2302,12 +2306,14 @@ RxDereferenceAndDeleteRxContext_Real(
|
||||||
KeSetEvent(&StopContext->SyncEvent, IO_NO_INCREMENT, FALSE);
|
KeSetEvent(&StopContext->SyncEvent, IO_NO_INCREMENT, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DBG
|
||||||
/* Is ShadowCrit still owned? Shouldn't happen! */
|
/* Is ShadowCrit still owned? Shouldn't happen! */
|
||||||
if (RxContext->ShadowCritOwner != 0)
|
if (RxContext->ShadowCritOwner != 0)
|
||||||
{
|
{
|
||||||
DPRINT1("ShadowCritOwner not null! %p\n", (PVOID)RxContext->ShadowCritOwner);
|
DPRINT1("ShadowCritOwner not null! %p\n", (PVOID)RxContext->ShadowCritOwner);
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If it was allocated, free it */
|
/* If it was allocated, free it */
|
||||||
if (Allocated)
|
if (Allocated)
|
||||||
|
@ -8293,7 +8299,9 @@ RxTableLookupName_ExactLengthMatch(
|
||||||
UNICODE_STRING InsensitiveName, InsensitivePrefix;
|
UNICODE_STRING InsensitiveName, InsensitivePrefix;
|
||||||
|
|
||||||
Entry = CONTAINING_RECORD(ListEntry, RX_PREFIX_ENTRY, HashLinks);
|
Entry = CONTAINING_RECORD(ListEntry, RX_PREFIX_ENTRY, HashLinks);
|
||||||
|
#if DBG
|
||||||
++ThisTable->Considers;
|
++ThisTable->Considers;
|
||||||
|
#endif
|
||||||
ASSERT(HashBucket == HASH_BUCKET(ThisTable, Entry->SavedHashValue));
|
ASSERT(HashBucket == HASH_BUCKET(ThisTable, Entry->SavedHashValue));
|
||||||
|
|
||||||
Container = Entry->ContainingRecord;
|
Container = Entry->ContainingRecord;
|
||||||
|
@ -8305,7 +8313,9 @@ RxTableLookupName_ExactLengthMatch(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DBG
|
||||||
++ThisTable->Compares;
|
++ThisTable->Compares;
|
||||||
|
#endif
|
||||||
/* If we have to perform a case insensitive compare on a portion... */
|
/* If we have to perform a case insensitive compare on a portion... */
|
||||||
if (Entry->CaseInsensitiveLength != 0)
|
if (Entry->CaseInsensitiveLength != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue