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

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 11 Jan 2010 23:10:12 +0100 (CET)

Author: bonefish
Date: 2010-01-11 23:10:12 +0100 (Mon, 11 Jan 2010)
New Revision: 35020
Changeset: http://dev.haiku-os.org/changeset/35020/haiku
Ticket: http://dev.haiku-os.org/ticket/5242

Modified:
   haiku/trunk/src/system/kernel/vm/vm_page.cpp
Log:
Fixed two instances of debug code I missed to adjust in r35004. Fixes #5242.


Modified: haiku/trunk/src/system/kernel/vm/vm_page.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-01-11 21:39:43 UTC 
(rev 35019)
+++ haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-01-11 22:10:12 UTC 
(rev 35020)
@@ -843,8 +843,8 @@
                // and put them into the clear queue
                for (int32 i = 0; i < scrubCount; i++) {
                        page[i]->state = PAGE_STATE_CLEAR;
+                       DEBUG_PAGE_ACCESS_END(page[i]);
                        sClearPageQueue.PrependUnlocked(page[i]);
-                       DEBUG_PAGE_ACCESS_END(page[i]);
                }
 
                locker.Unlock();
@@ -1607,8 +1607,8 @@
                        if (steal_page(page)) {
                                ReadLocker locker(sFreePageQueuesLock);
                                page->state = PAGE_STATE_FREE;
+                               DEBUG_PAGE_ACCESS_END(page);
                                sFreePageQueue.PrependUnlocked(page);
-                               DEBUG_PAGE_ACCESS_END(page);
                                locker.Unlock();
 
                                atomic_add(&sUnreservedFreePages, 1);


Other related posts:

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