mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
- Add a note about increasing max pool sizes when using pool debugging.
svn path=/trunk/; revision=41255
This commit is contained in:
parent
1760329b33
commit
88b8188a0e
1 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,8 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#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_NPOOL
|
||||||
//#define DEBUG_PPOOL
|
//#define DEBUG_PPOOL
|
||||||
|
|
||||||
|
@ -266,13 +267,14 @@ ExFreePoolWithTag(
|
||||||
(char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize))
|
(char*)Block < ((char*)MmPagedPoolBase + MmPagedPoolSize))
|
||||||
{
|
{
|
||||||
/* Validate tag */
|
/* Validate tag */
|
||||||
|
#if 0
|
||||||
if (Tag != 0 && Tag != EiGetPagedPoolTag(Block))
|
if (Tag != 0 && Tag != EiGetPagedPoolTag(Block))
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
0x0a,
|
0x0a,
|
||||||
(ULONG_PTR)Block,
|
(ULONG_PTR)Block,
|
||||||
EiGetPagedPoolTag(Block),
|
EiGetPagedPoolTag(Block),
|
||||||
Tag);
|
Tag);
|
||||||
|
#endif
|
||||||
/* Validate IRQL */
|
/* Validate IRQL */
|
||||||
if (KeGetCurrentIrql() > APC_LEVEL)
|
if (KeGetCurrentIrql() > APC_LEVEL)
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
|
@ -295,12 +297,12 @@ ExFreePoolWithTag(
|
||||||
(char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength))
|
(char*)Block < ((char*)MiNonPagedPoolStart + MiNonPagedPoolLength))
|
||||||
{
|
{
|
||||||
/* Validate tag */
|
/* Validate tag */
|
||||||
if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block))
|
/*if (Tag != 0 && Tag != EiGetNonPagedPoolTag(Block))
|
||||||
KeBugCheckEx(BAD_POOL_CALLER,
|
KeBugCheckEx(BAD_POOL_CALLER,
|
||||||
0x0a,
|
0x0a,
|
||||||
(ULONG_PTR)Block,
|
(ULONG_PTR)Block,
|
||||||
EiGetNonPagedPoolTag(Block),
|
EiGetNonPagedPoolTag(Block),
|
||||||
Tag);
|
Tag);*/
|
||||||
|
|
||||||
/* Validate IRQL */
|
/* Validate IRQL */
|
||||||
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
|
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue