Arena Allocator - Fix Arena::getMaxSize() to return maximum size of the Region rather than the size of the committed pages.

This commit is contained in:
2026-09-28 00:11:50 -07:00
parent a9bd73ef6a
commit 9fe6784da1

View File

@@ -71,7 +71,7 @@ size_t Arena::getUsed() const
// This may be greater than the maxSize passed into init, due to page size alignment.
size_t Arena::getMaxSize() const
{
return m_region.getSize();
return m_region.getMaxSize();
}
std::byte* Arena::alloc(size_t size)