mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Improve crash info if page_in_from_inode() is called redundantly.
This commit is contained in:
parent
c63d476da2
commit
3eeff0dd14
Notes:
sideshowbarker
2024-07-19 15:53:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3eeff0dd148
1 changed files with 4 additions and 1 deletions
|
@ -304,7 +304,10 @@ bool MemoryManager::page_in_from_inode(Region& region, unsigned page_index_in_re
|
|||
|
||||
auto& vmo_page = vmo.physical_pages()[region.first_page_index() + page_index_in_region];
|
||||
|
||||
ASSERT(vmo_page.is_null());
|
||||
if (!vmo_page.is_null()) {
|
||||
dbgprintf("MM: Redundant page_in_from_inode in %s(%u), inode=%u, [%u]\n", current->name().characters(), current->pid(), region.vmo().inode()->identifier().index(), page_index_in_region);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
bool interrupts_were_enabled = are_interrupts_enabled();
|
||||
|
||||
|
|
Loading…
Reference in a new issue