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:
@@ -71,7 +71,7 @@ size_t Arena::getUsed() const
|
|||||||
// This may be greater than the maxSize passed into init, due to page size alignment.
|
// This may be greater than the maxSize passed into init, due to page size alignment.
|
||||||
size_t Arena::getMaxSize() const
|
size_t Arena::getMaxSize() const
|
||||||
{
|
{
|
||||||
return m_region.getSize();
|
return m_region.getMaxSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::byte* Arena::alloc(size_t size)
|
std::byte* Arena::alloc(size_t size)
|
||||||
|
|||||||
Reference in New Issue
Block a user