From cde973ba90456fb5f2dfa91abf82ad571a005b12 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Fri, 1 Dec 2023 07:15:20 +0000 Subject: [PATCH] [*] Fix regressed bytebuffer scaling alg --- Include/Aurora/Memory/ByteBuffer_Memory.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/Aurora/Memory/ByteBuffer_Memory.inl b/Include/Aurora/Memory/ByteBuffer_Memory.inl index c0da5ce2..b2160d0d 100644 --- a/Include/Aurora/Memory/ByteBuffer_Memory.inl +++ b/Include/Aurora/Memory/ByteBuffer_Memory.inl @@ -216,7 +216,7 @@ namespace Aurora::Memory return true; } - auto newLength = AuMax(length, (this->allocSize / 4) * 3); + auto newLength = AuMax(length, AuPageRoundUp(this->allocSize + (this->allocSize / 3), 64ull)); if (auto pNext = ZRealloc(this->base, newLength)) {