return (Result >> 24) ^ (Result >> 16) ^ (Result >> 8) ^ Result;
}
+#if DBG
FORCEINLINE
BOOLEAN
ExpTagAllowPrint(CHAR Tag)
VOID
MiDumpNonPagedPoolConsumers(VOID)
{
- USHORT i;
+ SIZE_T i;
DPRINT1("---------------------\n");
DPRINT1("Out of memory dumper!\n");
DPRINT1("---------------------\n");
}
+#endif
/* PRIVATE FUNCTIONS **********************************************************/
Entry = MiAllocatePoolPages(OriginalType, NumberOfBytes);
if (!Entry)
{
+#if DBG
//
// If non paged backed, display current consumption
//
{
MiDumpNonPagedPoolConsumers();
}
+#endif
//
// Must succeed pool is deprecated, but still supported. These allocation
Entry = MiAllocatePoolPages(OriginalType, PAGE_SIZE);
if (!Entry)
{
+#if DBG
//
// If non paged backed, display current consumption
//
{
MiDumpNonPagedPoolConsumers();
}
+#endif
//
// Must succeed pool is deprecated, but still supported. These allocation