Commit 00fdbf05f3

Jacob Young <jacobly0@users.noreply.github.com>
2024-07-15 05:14:06
InternPool: enable separate codegen/linking thread
Let's see what happens :)
1 parent 9d1820d
Changed files (2)
src/InternPool.zig
@@ -55,7 +55,7 @@ free_dep_entries: std.ArrayListUnmanaged(DepEntry.Index) = .{},
 /// Whether a multi-threaded intern pool is useful.
 /// Currently `false` until the intern pool is actually accessed
 /// from multiple threads to reduce the cost of this data structure.
-const want_multi_threaded = false;
+const want_multi_threaded = true;
 
 /// Whether a single-threaded intern pool impl is in use.
 pub const single_threaded = builtin.single_threaded or !want_multi_threaded;
src/target.zig
@@ -572,7 +572,8 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt
             else => false,
         },
         .separate_thread => switch (backend) {
-            else => false,
+            .stage2_llvm => false,
+            else => true,
         },
     };
 }