aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Condition.zig
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2023-04-27 01:11:41 -0400
committerkcbanner <kcbanner@gmail.com>2023-04-27 01:11:57 -0400
commit15dafd16e65a8cd8ea434f0b4783f08875254cd4 (patch)
tree3d375de60cb43e1a353994cc101f4efb3bfc023e /lib/std/Thread/Condition.zig
parent2b592d7e3cf328deb1b8ffa7ea88389d785837ff (diff)
downloadzig-15dafd16e65a8cd8ea434f0b4783f08875254cd4.tar.gz
zig-15dafd16e65a8cd8ea434f0b4783f08875254cd4.zip
sema: add `prev` to ValueArena to allow freeing previous arenas when new ones are created during re-analysis
In semaDecl, it was possible for a new ArenaAllocators state to replace an existing one that hadn't been freed yet. Instead of the ref_count (which was made redundant by adding the allocator parameter to `release`), I now store a pointer to the previous arena, if one exists. This allows a recursive deinit to happen when the last arena created is destroyed.
Diffstat (limited to 'lib/std/Thread/Condition.zig')
0 files changed, 0 insertions, 0 deletions