mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Add warn message when trying to free an already freed page
This commit is contained in:
parent
feb1af5984
commit
e008796515
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user