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) {