Common/MemArena: Add function for getting page size

This commit is contained in:
JosJuice
2026-02-01 12:39:32 +01:00
parent 6711d77b99
commit 183e12b055
5 changed files with 37 additions and 0 deletions
+5
View File
@@ -108,6 +108,11 @@ void MemArena::UnmapFromMemoryRegion(void* view, size_t size)
NOTICE_LOG_FMT(MEMMAP, "mmap failed");
}
size_t MemArena::GetPageSize() const
{
return sysconf(_SC_PAGESIZE);
}
LazyMemoryRegion::LazyMemoryRegion() = default;
LazyMemoryRegion::~LazyMemoryRegion()