[ros-diffs] [fireball] 41255: - Add a note about increasing max pool sizes when using pool debugging.

fireball at svn.reactos.org fireball at svn.reactos.org
Tue Jun 2 14:48:01 CEST 2009


Author: fireball
Date: Tue Jun  2 16:48:00 2009
New Revision: 41255

URL: http://svn.reactos.org/svn/reactos?rev=41255&view=rev
Log:
- Add a note about increasing max pool sizes when using pool debugging.

Modified:
    trunk/reactos/ntoskrnl/mm/pool.c

Modified: trunk/reactos/ntoskrnl/mm/pool.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pool.c?rev=41255&r1=41254&r2=41255&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] Tue Jun  2 16:48:00 2009
@@ -14,7 +14,8 @@
 #define NDEBUG
 #include <debug.h>
 
-/* 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 @@
         (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 @@
              (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)



More information about the Ros-diffs mailing list