From: Pierre Schweitzer Date: Tue, 1 Aug 2017 18:04:18 +0000 (+0000) Subject: [RXCE] X-Git-Tag: backups/GSoC_2017/rapps@75905~4^2~208 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=54bb40541bef000e4e7d2b6964110d9f215ae19e;ds=sidebyside [RXCE] Make code that deals with DBG stuff only built in DBG builds CORE-11327 CORE-13610 svn path=/trunk/; revision=75468 --- diff --git a/reactos/sdk/lib/drivers/rxce/rxce.c b/reactos/sdk/lib/drivers/rxce/rxce.c index 82d111ecf48..9077265f8a1 100644 --- a/reactos/sdk/lib/drivers/rxce/rxce.c +++ b/reactos/sdk/lib/drivers/rxce/rxce.c @@ -500,8 +500,10 @@ RxAllocateFcbObject( Fcb->NonPaged = NonPagedFcb; ZeroAndInitializeNodeType(Fcb->NonPaged, RDBSS_NTC_NONPAGED_FCB, sizeof(NON_PAGED_FCB)); +#if DBG Fcb->CopyOfNonPaged = NonPagedFcb; NonPagedFcb->FcbBackPointer = Fcb; +#endif Fcb->InternalSrvOpen = SrvOpen; Fcb->InternalFobx = Fobx; @@ -1742,7 +1744,9 @@ RxCreateRxContext( DPRINT("RxCreateRxContext(%p, %p, %u)\n", Irp, RxDeviceObject, InitialContextFlags); +#if DBG InterlockedIncrement((volatile LONG *)&RxFsdEntryCount); +#endif InterlockedIncrement((volatile LONG *)&RxDeviceObject->NumberOfActiveContexts); /* Allocate the context from our lookaside list */ @@ -2302,12 +2306,14 @@ RxDereferenceAndDeleteRxContext_Real( KeSetEvent(&StopContext->SyncEvent, IO_NO_INCREMENT, FALSE); } +#if DBG /* Is ShadowCrit still owned? Shouldn't happen! */ if (RxContext->ShadowCritOwner != 0) { DPRINT1("ShadowCritOwner not null! %p\n", (PVOID)RxContext->ShadowCritOwner); ASSERT(FALSE); } +#endif /* If it was allocated, free it */ if (Allocated) @@ -8293,7 +8299,9 @@ RxTableLookupName_ExactLengthMatch( UNICODE_STRING InsensitiveName, InsensitivePrefix; Entry = CONTAINING_RECORD(ListEntry, RX_PREFIX_ENTRY, HashLinks); +#if DBG ++ThisTable->Considers; +#endif ASSERT(HashBucket == HASH_BUCKET(ThisTable, Entry->SavedHashValue)); Container = Entry->ContainingRecord; @@ -8305,7 +8313,9 @@ RxTableLookupName_ExactLengthMatch( continue; } +#if DBG ++ThisTable->Compares; +#endif /* If we have to perform a case insensitive compare on a portion... */ if (Entry->CaseInsensitiveLength != 0) {