Disable pool debug settings on a retail build and increase speed

svn path=/trunk/; revision=15510
This commit is contained in:
Alex Ionescu 2005-05-26 13:43:13 +00:00
parent c013c83354
commit be4adc56e9

View file

@ -15,18 +15,30 @@
/********** mm/ppool.c **********/ /********** mm/ppool.c **********/
/* Enable strict checking of the nonpaged pool on every allocation */ /* Disable Debugging Features */
#undef ENABLE_VALIDATE_POOL #ifndef DBG
/* Enable strict checking of the nonpaged pool on every allocation */
#undef ENABLE_VALIDATE_POOL
/* Enable tracking of statistics about the tagged blocks in the pool */ /* Enable tracking of statistics about the tagged blocks in the pool */
#undef TAG_STATISTICS_TRACKING #undef TAG_STATISTICS_TRACKING
/* /* Enable Memory Debugging Features/Helpers */
#undef POOL_DEBUG_APIS
/* Enable Redzone */
#define R_RZ 0
/* Enable Allocator Stack */
#define R_STACK 0
/*
* Put each block in its own range of pages and position the block at the * Put each block in its own range of pages and position the block at the
* end of the range so any accesses beyond the end of block are to invalid * end of the range so any accesses beyond the end of block are to invalid
* memory locations. * memory locations.
*/ */
#undef WHOLE_PAGE_ALLOCATIONS #undef WHOLE_PAGE_ALLOCATIONS
#endif
#endif /* __INCLUDE_NTOSKRNL_CONFIG_H */ #endif /* __INCLUDE_NTOSKRNL_CONFIG_H */