mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
[NTOSKRNL] Don't call OOM dumper in case we were trying to allocate more than 100 pages.
In such case, we'll consider the caller is bogus and we'll fail in silence. Dedicated to Mark (again!)
This commit is contained in:
parent
01fcb02880
commit
bdae0cce66
1 changed files with 14 additions and 2 deletions
|
@ -1810,8 +1810,14 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
|||
#if DBG
|
||||
//
|
||||
// Out of memory, display current consumption
|
||||
// Let's consider that if the caller wanted more
|
||||
// than a hundred pages, that's a bogus caller
|
||||
// and we are not out of memory
|
||||
//
|
||||
MiDumpPoolConsumers(FALSE, 0, 0, 0);
|
||||
if (NumberOfBytes < 100 * PAGE_SIZE)
|
||||
{
|
||||
MiDumpPoolConsumers(FALSE, 0, 0, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -2143,8 +2149,14 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
|||
#if DBG
|
||||
//
|
||||
// Out of memory, display current consumption
|
||||
// Let's consider that if the caller wanted more
|
||||
// than a hundred pages, that's a bogus caller
|
||||
// and we are not out of memory
|
||||
//
|
||||
MiDumpPoolConsumers(FALSE, 0, 0, 0);
|
||||
if (NumberOfBytes < 100 * PAGE_SIZE)
|
||||
{
|
||||
MiDumpPoolConsumers(FALSE, 0, 0, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue