zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3764f7b0f2b2cac05f7884c93b4da3898c72cd5d (tree)
parent aa92c237e9174e2f48d11c6c23ac41067fa9bb57
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 21 Aug 2025 18:00:51 -0700

compiler: disable InternPool.debug_state as it is unsound

There can be more than one InternPool instance active at the same time.

Diffstat:
Msrc/InternPool.zig | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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; };