From 9fe6784da1e6f6003c7a3e67629834acd194b1c1 Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Mon, 28 Sep 2026 00:11:50 -0700 Subject: [PATCH] Arena Allocator - Fix Arena::getMaxSize() to return maximum size of the Region rather than the size of the committed pages. --- src/arena.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arena.cpp b/src/arena.cpp index 88df59d..005911c 100644 --- a/src/arena.cpp +++ b/src/arena.cpp @@ -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)