From 60e785c4cc5a3888524bab3ee2e07567eddcdfd4 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Thu, 23 Jan 2025 15:27:44 -0500 Subject: [PATCH] use configured stack size for threads in thread_pool --- src/thread_pool.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread_pool.zig b/src/thread_pool.zig index b365555b7f5452..457aeb85e1f0f3 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -472,7 +472,7 @@ noinline fn notifySlow(self: *ThreadPool, is_waking: bool) void { // We signaled to spawn a new thread if (can_wake and sync.spawned < self.max_threads) { - const spawn_config = std.Thread.SpawnConfig{ .stack_size = default_thread_stack_size }; + const spawn_config = std.Thread.SpawnConfig{ .stack_size = self.stack_size }; const thread = std.Thread.spawn(spawn_config, Thread.run, .{self}) catch return self.unregister(null); // if (self.name.len > 0) thread.setName(self.name) catch {}; return thread.detach();