aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Target/arc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-01 19:11:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 19:49:08 -0700
commitd5c1e7f7b1381036f7d98c1944607cb0e1c0d4da (patch)
treef78506c79713b855ed8f23426ce78e0e292e13ee /lib/std/Target/arc.zig
parenteae6d45cded76dd027569c86a7cdd5bc9039664b (diff)
downloadzig-d5c1e7f7b1381036f7d98c1944607cb0e1c0d4da.tar.gz
zig-d5c1e7f7b1381036f7d98c1944607cb0e1c0d4da.zip
link: accept the update arena in flush
This branch introduced an arena allocator for temporary allocations in Compilation.update. Almost every implementation of flush() inside the linker code was already creating a local arena that had the lifetime of the function call. This commit passes the update arena so that all those local ones can be deleted, resulting in slightly more efficient memory usage with every compilation update. While at it, this commit also removes the Compilation parameter from the linker flush function API since a reference to the Compilation is now already stored in `link.File`.
Diffstat (limited to 'lib/std/Target/arc.zig')
0 files changed, 0 insertions, 0 deletions