[NTOS]: Handle memory allocation failures correctly, supporting all the required...
authorSir Richard <sir_richard@svn.reactos.org>
Mon, 27 Feb 2012 08:21:15 +0000 (08:21 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Mon, 27 Feb 2012 08:21:15 +0000 (08:21 +0000)
commit50099594372be5a17b27f672bd192c772c433692
treeb92dd0eff90c142b0cd769fb1d53edd3c84c7ef0
parent567e9e3a71c49f9b884ac8604dcf1d3584d4eabf
[NTOS]: Handle memory allocation failures correctly, supporting all the required debug and caller flags (such as RAISE_ON_FAILURE). We no longer simply just return "NULL" in failure cases.
[NTOS]: Implement counters for paged and nonpaged pool. First-stage setup now shows Kernel Pool values again, as does Task Manager. Fixes the regression introduced when pool/non-paged pool was no longer managed through "memory consumer" API.
[NTOS]: Add more debugging paths and flags that were sent over from the "Aleksey Pool Patch". Most of them are not implemented.
[NTOS]: Fix a missing case when a pool header check was not being done.
[NTOS]: Check IRQL levels during pool allocation and free.
With tags and the counters, pool leaks should be massively more debuggable now.

svn path=/trunk/; revision=55879
reactos/ntoskrnl/ex/sysinfo.c
reactos/ntoskrnl/mm/ARM3/expool.c
reactos/ntoskrnl/mm/ARM3/miarm.h