Page align up region to be freed

This commit is contained in:
momo5502
2025-03-22 17:47:41 +01:00
parent 1a640ed6d2
commit 61b159c860

View File

@@ -395,6 +395,8 @@ bool memory_manager::release_memory(const uint64_t address, size_t size)
size = entry->second.length;
}
size = page_align_up(size);
if (size > entry->second.length)
{
throw std::runtime_error("Cross region release not supported yet!");