Print page and cache using initial commands in panic message.
This commit is contained in:
@@ -670,8 +670,8 @@ VMCache::Delete()
|
|||||||
// free all of the pages in the cache
|
// free all of the pages in the cache
|
||||||
while (vm_page* page = pages.Root()) {
|
while (vm_page* page = pages.Root()) {
|
||||||
if (!page->mappings.IsEmpty() || page->WiredCount() != 0) {
|
if (!page->mappings.IsEmpty() || page->WiredCount() != 0) {
|
||||||
panic("remove page %p from cache %p: page still has mappings!\n",
|
panic("remove page %p from cache %p: page still has mappings!\n"
|
||||||
page, this);
|
"@!page %p; cache %p", page, this, page, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove it
|
// remove it
|
||||||
|
|||||||
Reference in New Issue
Block a user