mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
This prevents a race between `alloc` and `free` where T1 receives memory from `alloc` that is semantically about to be freed by T2 and still being accessed, but the `free` is already visible to T1. Using acquire-release here guarantees that any `free` is only published after all accesses to the memory being freed have already happened. Co-authored-by: Jacob Young <amazingjacob@gmail.com> |
History
|
|
|---|---|---|
| .. | ||
| ArenaAllocator.zig | ||
| BrkAllocator.zig | ||
| debug_allocator.zig | ||
| FixedBufferAllocator.zig | ||
| memory_pool.zig | ||
| PageAllocator.zig | ||
| SmpAllocator.zig | ||