File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1810,8 +1810,14 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
1810
1810
#if DBG
1811
1811
//
1812
1812
// Out of memory, display current consumption
1813
+ // Let's consider that if the caller wanted more
1814
+ // than a hundred pages, that's a bogus caller
1815
+ // and we are not out of memory
1813
1816
//
1814
- MiDumpPoolConsumers (FALSE, 0 , 0 , 0 );
1817
+ if (NumberOfBytes < 100 * PAGE_SIZE )
1818
+ {
1819
+ MiDumpPoolConsumers (FALSE, 0 , 0 , 0 );
1820
+ }
1815
1821
#endif
1816
1822
1817
1823
//
@@ -2143,8 +2149,14 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
2143
2149
#if DBG
2144
2150
//
2145
2151
// Out of memory, display current consumption
2152
+ // Let's consider that if the caller wanted more
2153
+ // than a hundred pages, that's a bogus caller
2154
+ // and we are not out of memory
2146
2155
//
2147
- MiDumpPoolConsumers (FALSE, 0 , 0 , 0 );
2156
+ if (NumberOfBytes < 100 * PAGE_SIZE )
2157
+ {
2158
+ MiDumpPoolConsumers (FALSE, 0 , 0 , 0 );
2159
+ }
2148
2160
#endif
2149
2161
2150
2162
//
You can’t perform that action at this time.
0 commit comments