aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-21 18:00:51 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-09-24 20:01:19 -0700
commit3764f7b0f2b2cac05f7884c93b4da3898c72cd5d (patch)
treea75e3a9fe28dcb17277bc18518f072c922af001b /src/InternPool.zig
parentaa92c237e9174e2f48d11c6c23ac41067fa9bb57 (diff)
downloadzig-3764f7b0f2b2cac05f7884c93b4da3898c72cd5d.tar.gz
zig-3764f7b0f2b2cac05f7884c93b4da3898c72cd5d.zip
compiler: disable InternPool.debug_state as it is unsound
There can be more than one InternPool instance active at the same time.
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index f4344af86d..e19fc075ee 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;
};