diff options
| author | DuchGhast <duch.ghast@protonmail.com> | 2025-12-08 17:30:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-08 17:30:52 +0000 |
| commit | 1ed1fefc27a0041b669c85174db9d273ea54ac24 (patch) | |
| tree | b9e980efa27f9a400653f30b72ee1cccf9c5ef7c /base | |
| parent | e6827393cf2f385a4cd13d605c5280ace33a84f2 (diff) | |
Fix default temp allocator under flow bug
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/default_temp_allocator_arena.odin | 1 |
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 |