aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-17 17:00:41 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:10 -0800
commit608145c2f07d90c46cdaa8bc2013f31b965a5b8b (patch)
treea8704744b3808887c25ecf7b674eed030b2f6c7d /src/InternPool.zig
parentaa57793b680b3da05f1d888b4df15807905e57c8 (diff)
downloadzig-608145c2f07d90c46cdaa8bc2013f31b965a5b8b.tar.gz
zig-608145c2f07d90c46cdaa8bc2013f31b965a5b8b.zip
fix more fallout from locking stderr
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 539cb441c5..98bde244c5 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -11169,9 +11169,9 @@ pub fn mutateVarInit(ip: *InternPool, io: Io, index: Index, init_index: Index) v
pub fn dump(ip: *const InternPool, io: Io) Io.Cancelable!void {
var buffer: [4096]u8 = undefined;
- const stderr_writer = try io.lockStderrWriter(&buffer);
- defer io.unlockStderrWriter();
- const w = &stderr_writer.interface;
+ const stderr = try io.lockStderr(&buffer, null);
+ defer io.unlockStderr();
+ const w = &stderr.file_writer.interface;
try dumpStatsFallible(ip, w, std.heap.page_allocator);
try dumpAllFallible(ip, w);
}
@@ -11536,8 +11536,8 @@ fn dumpAllFallible(ip: *const InternPool, w: *Io.Writer) anyerror!void {
pub fn dumpGenericInstances(ip: *const InternPool, io: Io, allocator: Allocator) Io.Cancelable!void {
var buffer: [4096]u8 = undefined;
- const stderr_writer = try io.lockStderrWriter(&buffer);
- defer io.unlockStderrWriter();
+ const stderr_writer = try io.lockStderr(&buffer, null);
+ defer io.unlockStderr();
const w = &stderr_writer.interface;
try ip.dumpGenericInstancesFallible(allocator, w);
}