diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-07 14:05:28 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-07 14:41:49 -0800 |
| commit | 1754e014f5da09bf83a7ee1e53132325fd78d1c1 (patch) | |
| tree | 840242c06840a052c963349702df4a9566feb0f7 /lib/std/array_list.zig | |
| parent | a9d30056167cbe54c0c144199f01a56f6cdcdafc (diff) | |
| download | zig-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
