Don't allow a decommitted page to be swapped back in more than once

This commit is contained in:
Ryan Dortmans
2004-11-20 04:42:34 +00:00
parent 89a0f37c9f
commit c0b104fc41
@@ -246,6 +246,13 @@ bool VirtualMemoryManager::PageFault(void *ptr)
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;
if(LOG && logging)