kernel/vm: Check the page's cache in the "supposed to be free page" panic.

Change-Id: I8db000723f67023c845b79721385a9e1ebc6cef7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8368
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Augustin Cavalier 2024-09-25 17:18:07 -04:00 committed by waddlesplash
parent b665a3ab2a
commit 5ea41d287c

View File

@ -3655,7 +3655,7 @@ vm_page_allocate_page(vm_page_reservation* reservation, uint32 flags)
}
if (page->CacheRef() != NULL)
panic("supposed to be free page %p has cache @! page -m %p", page, page);
panic("supposed to be free page %p has cache @! page %p; cache _cache", page, page);
DEBUG_PAGE_ACCESS_START(page);