From 3e5343f226e21d808e04617e230462ffbeec1503 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 20 Feb 2010 16:45:44 +0000 Subject: [PATCH] free_cached_page(): Removed incorrect asserts. The same ones appear a few lines later anyway, after the cache has been locked and it has been verified that the page is still a candidate. Fixes #5432. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35539 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_page.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index b5b5acca8e..eea1789a5f 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -2013,10 +2013,6 @@ find_cached_page_candidate(struct vm_page &marker) static bool free_cached_page(vm_page *page, bool dontWait) { - ASSERT(!page->busy); - ASSERT(!page->modified); - ASSERT(page->wired_count == 0 && page->mappings.IsEmpty()); - // try to lock the page's cache if (vm_cache_acquire_locked_page_cache(page, dontWait) == NULL) return false;