mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-08-24 20:45:02 +00:00
Add warn message when trying to free an already freed page
This commit is contained in:
@@ -189,7 +189,10 @@ namespace Memory
|
|||||||
}
|
}
|
||||||
size_t Index = (size_t)Address / PAGE_SIZE;
|
size_t Index = (size_t)Address / PAGE_SIZE;
|
||||||
if (unlikely(PageBitmap[Index] == false))
|
if (unlikely(PageBitmap[Index] == false))
|
||||||
|
{
|
||||||
|
warn("Tried to free an already free page. (%p)", Address);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (PageBitmap.Set(Index, false))
|
if (PageBitmap.Set(Index, false))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user