xref: /reactos/ntoskrnl/include/config.h (revision b819608e)
1 #pragma once
2 
3 /********** dbg/print.c **********/
4 
5 /* Enable serialization of debug messages printed with DbgPrint
6  *
7  * If this is enabled DbgPrint will queue messages if another thread is already
8  * printing a message, and immediately returns. The other thread will print
9  * queued messages before it returns.
10  * It could happen that some messages are lost if the processor is halted before
11  * the message queue was flushed.
12  */
13 #undef SERIALIZE_DBGPRINT
14 
15 /********** mm/ppool.c **********/
16 
17 /* Disable Debugging Features */
18 #if !DBG
19     /* Enable strict checking of the nonpaged pool on every allocation */
20     #undef ENABLE_VALIDATE_POOL
21 
22     /* Enable tracking of statistics about the tagged blocks in the pool */
23     #undef TAG_STATISTICS_TRACKING
24 
25     /* Enable Memory Debugging Features/Helpers */
26     #undef POOL_DEBUG_APIS
27 
28     /* Enable Redzone */
29     #define R_RZ 0
30 
31     /* Enable Allocator Stack */
32     #define R_STACK 0
33 
34     /*
35      * Put each block in its own range of pages and position the block at the
36      * end of the range so any accesses beyond the end of block are to invalid
37      * memory locations.
38      */
39     #undef WHOLE_PAGE_ALLOCATIONS
40 #endif
41