authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-21 18:00:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-24 20:01:19-07:00
log3764f7b0f2b2cac05f7884c93b4da3898c72cd5d
treea75e3a9fe28dcb17277bc18518f072c922af001b
parentaa92c237e9174e2f48d11c6c23ac41067fa9bb57

compiler: disable InternPool.debug_state as it is unsound

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

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

src/InternPool.zig+1-4
......@@ -6925,10 +6925,7 @@ pub fn deactivate(ip: *const InternPool) void {
69256925
69266926/// For debugger access only.
69276927const debug_state = struct {
6928 const enable = switch (builtin.zig_backend) {
6929 else => false,
6930 .stage2_x86_64 => !builtin.strip_debug_info,
6931 };
6928 const enable = false;
69326929 const enable_checks = enable and !builtin.single_threaded;
69336930 threadlocal var intern_pool: ?*const InternPool = null;
69346931};