From c0b104fc41a2414fd8cf11a7938cb993434719da Mon Sep 17 00:00:00 2001 From: Ryan Dortmans Date: Sat, 20 Nov 2004 04:42:34 +0000 Subject: [PATCH] Don't allow a decommitted page to be swapped back in more than once --- stepmania/src/archutils/Xbox/VirtualMemory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/archutils/Xbox/VirtualMemory.cpp b/stepmania/src/archutils/Xbox/VirtualMemory.cpp index 3ebb1cc032..fa1aeb476c 100644 --- a/stepmania/src/archutils/Xbox/VirtualMemory.cpp +++ b/stepmania/src/archutils/Xbox/VirtualMemory.cpp @@ -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)