[haiku-commits] r35539 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 20 Feb 2010 17:45:44 +0100 (CET)

Author: bonefish
Date: 2010-02-20 17:45:44 +0100 (Sat, 20 Feb 2010)
New Revision: 35539
Changeset: http://dev.haiku-os.org/changeset/35539/haiku
Ticket: http://dev.haiku-os.org/ticket/5432

Modified:
   haiku/trunk/src/system/kernel/vm/vm_page.cpp
Log:
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.


Modified: haiku/trunk/src/system/kernel/vm/vm_page.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-02-20 15:57:44 UTC 
(rev 35538)
+++ haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-02-20 16:45:44 UTC 
(rev 35539)
@@ -2013,10 +2013,6 @@
 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;


Other related posts:

  • » [haiku-commits] r35539 - haiku/trunk/src/system/kernel/vm - ingo_weinhold