mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
[NTOSKRNL] Only activate dumper in DBG builds
This commit is contained in:
parent
149e1a2610
commit
c473b1a4d6
1 changed files with 7 additions and 1 deletions
|
@ -460,6 +460,7 @@ ExpComputePartialHashForAddress(IN PVOID BaseAddress)
|
||||||
return (Result >> 24) ^ (Result >> 16) ^ (Result >> 8) ^ Result;
|
return (Result >> 24) ^ (Result >> 16) ^ (Result >> 8) ^ Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DBG
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ExpTagAllowPrint(CHAR Tag)
|
ExpTagAllowPrint(CHAR Tag)
|
||||||
|
@ -477,7 +478,7 @@ ExpTagAllowPrint(CHAR Tag)
|
||||||
VOID
|
VOID
|
||||||
MiDumpNonPagedPoolConsumers(VOID)
|
MiDumpNonPagedPoolConsumers(VOID)
|
||||||
{
|
{
|
||||||
USHORT i;
|
SIZE_T i;
|
||||||
|
|
||||||
DPRINT1("---------------------\n");
|
DPRINT1("---------------------\n");
|
||||||
DPRINT1("Out of memory dumper!\n");
|
DPRINT1("Out of memory dumper!\n");
|
||||||
|
@ -532,6 +533,7 @@ MiDumpNonPagedPoolConsumers(VOID)
|
||||||
|
|
||||||
DPRINT1("---------------------\n");
|
DPRINT1("---------------------\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS **********************************************************/
|
/* PRIVATE FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
|
@ -1714,6 +1716,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
Entry = MiAllocatePoolPages(OriginalType, NumberOfBytes);
|
Entry = MiAllocatePoolPages(OriginalType, NumberOfBytes);
|
||||||
if (!Entry)
|
if (!Entry)
|
||||||
{
|
{
|
||||||
|
#if DBG
|
||||||
//
|
//
|
||||||
// If non paged backed, display current consumption
|
// If non paged backed, display current consumption
|
||||||
//
|
//
|
||||||
|
@ -1721,6 +1724,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
{
|
{
|
||||||
MiDumpNonPagedPoolConsumers();
|
MiDumpNonPagedPoolConsumers();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Must succeed pool is deprecated, but still supported. These allocation
|
// Must succeed pool is deprecated, but still supported. These allocation
|
||||||
|
@ -2048,6 +2052,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
Entry = MiAllocatePoolPages(OriginalType, PAGE_SIZE);
|
Entry = MiAllocatePoolPages(OriginalType, PAGE_SIZE);
|
||||||
if (!Entry)
|
if (!Entry)
|
||||||
{
|
{
|
||||||
|
#if DBG
|
||||||
//
|
//
|
||||||
// If non paged backed, display current consumption
|
// If non paged backed, display current consumption
|
||||||
//
|
//
|
||||||
|
@ -2055,6 +2060,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
{
|
{
|
||||||
MiDumpNonPagedPoolConsumers();
|
MiDumpNonPagedPoolConsumers();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Must succeed pool is deprecated, but still supported. These allocation
|
// Must succeed pool is deprecated, but still supported. These allocation
|
||||||
|
|
Loading…
Reference in a new issue