Don't allow a decommitted page to be swapped back in more than once
This commit is contained in:
@@ -246,6 +246,13 @@ bool VirtualMemoryManager::PageFault(void *ptr)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pages[startPage].committed)
|
||||||
|
{
|
||||||
|
if(LOG && logging)
|
||||||
|
LOG->Trace("Pages appear to be committed already. Doing nothing...");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
pageLRU = (startPage + pages[startPage].sizeInPages) % totalPages;
|
pageLRU = (startPage + pages[startPage].sizeInPages) % totalPages;
|
||||||
|
|
||||||
if(LOG && logging)
|
if(LOG && logging)
|
||||||
|
|||||||
Reference in New Issue
Block a user