From 88b8188a0e8929752cc2a27c7c01e38af0d24ea0 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 2 Jun 2009 12:48:00 +0000 Subject: [PATCH] - Add a note about increasing max pool sizes when using pool debugging. svn path=/trunk/; revision=41255 --- reactos/ntoskrnl/mm/pool.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/mm/pool.c b/reactos/ntoskrnl/mm/pool.c index fd034adf9c7..a483201035a 100644 --- a/reactos/ntoskrnl/mm/pool.c +++ b/reactos/ntoskrnl/mm/pool.c @@ -14,7 +14,8 @@ #define NDEBUG #include -/* Uncomment to enable pool overruns debugging */ +/* Uncomment to enable pool overruns debugging. Don't forget to increase + max pool sizes (MM_[NON]PAGED_POOL_SIZE) in include/internal/mm.h */ //#define DEBUG_NPOOL //#define DEBUG_PPOOL @@ -266,13 +267,14 @@ ExFreePoolWithTag( (char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize)) { /* Validate tag */ +#if 0 if (Tag != 0 && Tag != EiGetPagedPoolTag(Block)) KeBugCheckEx(BAD_POOL_CALLER, 0x0a, (ULONG_PTR)Block, EiGetPagedPoolTag(Block), Tag); - +#endif /* Validate IRQL */ if (KeGetCurrentIrql() > APC_LEVEL) KeBugCheckEx(BAD_POOL_CALLER, @@ -295,12 +297,12 @@ ExFreePoolWithTag( (char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength)) { /* Validate tag */ - if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block)) + /*if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block)) KeBugCheckEx(BAD_POOL_CALLER, 0x0a, (ULONG_PTR)Block, EiGetNonPagedPoolTag(Block), - Tag); + Tag);*/ /* Validate IRQL */ if (KeGetCurrentIrql() > DISPATCH_LEVEL)