From 6ef7d359c7b8dc970e0dbc7d7e2baa67f00d3695 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 11 Dec 2011 17:00:23 +0100 Subject: [PATCH] ASSERT() that there really aren't any wired pages. --- src/system/kernel/vm/vm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index a03d690a51..c6d6829fe7 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -2363,6 +2363,8 @@ vm_copy_on_write_area(VMCache* lowerCache, } } } else { + ASSERT(lowerCache->WiredPagesCount() == 0); + // just change the protection of all areas for (VMArea* tempArea = upperCache->areas; tempArea != NULL; tempArea = tempArea->cache_next) {