Selaa lähdekoodia

Kernel: Tighten assertion in MM::find_free_user_physical_page

If our book-keeping of user physical pages is correct, we should always
find a physical page, regardless if it was committed or uncommitted.
Idan Horowitz 3 vuotta sitten
vanhempi
commit
b4e45a6636
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Kernel/Memory/MemoryManager.cpp

+ 1 - 1
Kernel/Memory/MemoryManager.cpp

@@ -915,7 +915,7 @@ RefPtr<PhysicalPage> MemoryManager::find_free_user_physical_page(bool committed)
             break;
             break;
         }
         }
     }
     }
-    VERIFY(!committed || !page.is_null());
+    VERIFY(!page.is_null());
     return page;
     return page;
 }
 }