From 3764f7b0f2b2cac05f7884c93b4da3898c72cd5d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 21 Aug 2025 18:00:51 -0700 Subject: [PATCH] compiler: disable InternPool.debug_state as it is unsound There can be more than one InternPool instance active at the same time. --- src/InternPool.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/InternPool.zig b/src/InternPool.zig index f4344af86d46be017beacf31e90c581493517b0f..e19fc075ee0967995e312e0294fca3be2fec77c8 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -6925,10 +6925,7 @@ pub fn deactivate(ip: *const InternPool) void { /// For debugger access only. const debug_state = struct { - const enable = switch (builtin.zig_backend) { - else => false, - .stage2_x86_64 => !builtin.strip_debug_info, - }; + const enable = false; const enable_checks = enable and !builtin.single_threaded; threadlocal var intern_pool: ?*const InternPool = null; }; -- 2.54.0