From 06361c9a5c3bb67843ccfa7656df7a2e4563b2f3 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 64f1dd6efbd468..1380d2945203ee 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();