Fixed two instances of debug code I missed to adjust in r35004. Fixes #5242.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35020 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -843,8 +843,8 @@ page_scrubber(void *unused)
|
|||||||
// and put them into the clear queue
|
// and put them into the clear queue
|
||||||
for (int32 i = 0; i < scrubCount; i++) {
|
for (int32 i = 0; i < scrubCount; i++) {
|
||||||
page[i]->state = PAGE_STATE_CLEAR;
|
page[i]->state = PAGE_STATE_CLEAR;
|
||||||
sClearPageQueue.PrependUnlocked(page[i]);
|
|
||||||
DEBUG_PAGE_ACCESS_END(page[i]);
|
DEBUG_PAGE_ACCESS_END(page[i]);
|
||||||
|
sClearPageQueue.PrependUnlocked(page[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
@@ -1607,8 +1607,8 @@ steal_pages(vm_page **pages, size_t count)
|
|||||||
if (steal_page(page)) {
|
if (steal_page(page)) {
|
||||||
ReadLocker locker(sFreePageQueuesLock);
|
ReadLocker locker(sFreePageQueuesLock);
|
||||||
page->state = PAGE_STATE_FREE;
|
page->state = PAGE_STATE_FREE;
|
||||||
sFreePageQueue.PrependUnlocked(page);
|
|
||||||
DEBUG_PAGE_ACCESS_END(page);
|
DEBUG_PAGE_ACCESS_END(page);
|
||||||
|
sFreePageQueue.PrependUnlocked(page);
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
|
|
||||||
atomic_add(&sUnreservedFreePages, 1);
|
atomic_add(&sUnreservedFreePages, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user