authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-07-14 23:14:06-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-07-16 06:28:42-04:00
log00fdbf05f39931d1f6c5808e8da4afca85357214
treeb00969c102e147def637c6f519eafefd17bc42f3
parent9d1820d20635ade6cb2dbfc36744353715653670

InternPool: enable separate codegen/linking thread

Let's see what happens :)

2 files changed, 3 insertions(+), 2 deletions(-)

src/InternPool.zig+1-1
...@@ -55,7 +55,7 @@ free_dep_entries: std.ArrayListUnmanaged(DepEntry.Index) = .{},...@@ -55,7 +55,7 @@ free_dep_entries: std.ArrayListUnmanaged(DepEntry.Index) = .{},
55/// Whether a multi-threaded intern pool is useful.55/// Whether a multi-threaded intern pool is useful.
56/// Currently `false` until the intern pool is actually accessed56/// Currently `false` until the intern pool is actually accessed
57/// from multiple threads to reduce the cost of this data structure.57/// from multiple threads to reduce the cost of this data structure.
58const want_multi_threaded = false;58const want_multi_threaded = true;
5959
60/// Whether a single-threaded intern pool impl is in use.60/// Whether a single-threaded intern pool impl is in use.
61pub const single_threaded = builtin.single_threaded or !want_multi_threaded;61pub const single_threaded = builtin.single_threaded or !want_multi_threaded;
src/target.zig+2-1
...@@ -572,7 +572,8 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt...@@ -572,7 +572,8 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt
572 else => false,572 else => false,
573 },573 },
574 .separate_thread => switch (backend) {574 .separate_thread => switch (backend) {
575 else => false,575 .stage2_llvm => false,
576 else => true,
576 },577 },
577 };578 };
578}579}