authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2024-04-06 04:24:00-04:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2024-04-06 04:24:00-04:00
log3eeb70540d7f40526b4f4549deb6e2bc792bb3b2
tree5e2ed87bae075a629ba8d38cb25627538fab520e
parent05b185811e7427296bc6b6231d0b7f882f118d38

fix number of arguments preallocation in zig jit subcommand

crash repo: `zig std 1 2 3 4 5` (in a debug build)

1 files changed, 1 insertions(+), 1 deletions(-)

src/main.zig+1-1
......@@ -5402,7 +5402,7 @@ fn jitCmd(
54025402 defer thread_pool.deinit();
54035403
54045404 var child_argv: std.ArrayListUnmanaged([]const u8) = .{};
5405 try child_argv.ensureUnusedCapacity(arena, args.len + 2);
5405 try child_argv.ensureUnusedCapacity(arena, args.len + 4);
54065406
54075407 // We want to release all the locks before executing the child process, so we make a nice
54085408 // big block here to ensure the cleanup gets run when we extract out our argv.