aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-12-09 10:44:14 +0000
committerGitHub <noreply@github.com>2025-12-09 10:44:14 +0000
commit1fe6e36faff00b291273e08854c4a7f2d2394be9 (patch)
tree273349b91d13e719e313eb11b1891d5a44a54bc7
parent0ef81769710b8da66b7777cd7f8491edf7086764 (diff)
parent1ed1fefc27a0041b669c85174db9d273ea54ac24 (diff)
Merge pull request #6002 from DuchGhast/default-temp-allocator-under-flow-fix
Fix default temp allocator under flow bug
-rw-r--r--base/runtime/default_temp_allocator_arena.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/runtime/default_temp_allocator_arena.odin b/base/runtime/default_temp_allocator_arena.odin
index 8f4821b4a..eafaf9fbe 100644
--- a/base/runtime/default_temp_allocator_arena.odin
+++ b/base/runtime/default_temp_allocator_arena.odin
@@ -235,6 +235,7 @@ arena_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
if start < old_end && old_end == block.used && new_end <= block.capacity {
// grow data in-place, adjusting next allocation
block.used = uint(new_end)
+ arena.total_used = uint(new_end)
data = block.base[start:new_end]
// sanitizer.address_unpoison(data)
return