aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-07 14:05:28 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-07 14:41:49 -0800
commit1754e014f5da09bf83a7ee1e53132325fd78d1c1 (patch)
tree840242c06840a052c963349702df4a9566feb0f7 /lib/std/array_list.zig
parenta9d30056167cbe54c0c144199f01a56f6cdcdafc (diff)
downloadzig-1754e014f5da09bf83a7ee1e53132325fd78d1c1.tar.gz
zig-1754e014f5da09bf83a7ee1e53132325fd78d1c1.zip
std.heap.SmpAllocator: rotate on free sometimes
* slab length reduced to 64K * track freelist length with u8s * on free(), rotate if freelist length exceeds max_freelist_len Prevents memory leakage in the scenario where one thread only allocates and another thread only frees.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions