mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:MM] MmRequestPageMemoryConsumer: Properly mark CORE-17624 delay hack
Addendum to commit 2b14056600
.
This commit is contained in:
parent
a8322459ab
commit
c69ad5efa2
1 changed files with 4 additions and 2 deletions
|
@ -314,10 +314,12 @@ MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait,
|
|||
PPFN_NUMBER AllocatedPage)
|
||||
{
|
||||
PFN_NUMBER Page;
|
||||
|
||||
/* Delay some requests for the Memory Manager to recover pages (CORE-17624).
|
||||
* FIXME: This is suboptimal.
|
||||
*/
|
||||
static INT i = 0;
|
||||
static LARGE_INTEGER TinyTime = {{-1L, -1L}};
|
||||
|
||||
/* Delay some requests for the Memory Manager to recover pages */
|
||||
if (i++ >= 100)
|
||||
{
|
||||
KeDelayExecutionThread(KernelMode, FALSE, &TinyTime);
|
||||
|
|
Loading…
Reference in a new issue