diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-07-31 10:54:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-31 10:54:35 -0700 |
| commit | 1b9ffa0824198fc72b085ad99e9f27ad6f533f3a (patch) | |
| tree | 03382a1f770b1a5d0f4d1da221fa095be04383a1 /lib/std/Thread.zig | |
| parent | ba3b3528914f8e886b5fe2cba714de34c176a921 (diff) | |
| download | zig-1b9ffa0824198fc72b085ad99e9f27ad6f533f3a.tar.gz zig-1b9ffa0824198fc72b085ad99e9f27ad6f533f3a.zip | |
Revert "std.Thread: refining stack size from platform minimum, changes more targetted towards platform like Linux/musl (#15791)"
This reverts commit 41502c6aa53a3da31b276c23c4db74db7d04796b.
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 64815bde72..ff4f7e8f49 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -695,7 +695,7 @@ const PosixThreadImpl = struct { defer assert(c.pthread_attr_destroy(&attr) == .SUCCESS); // Use the same set of parameters used by the libc-less impl. - const stack_size = @max(config.stack_size, c.PTHREAD_STACK_MIN); + const stack_size = @max(config.stack_size, 16 * 1024); assert(c.pthread_attr_setstacksize(&attr, stack_size) == .SUCCESS); assert(c.pthread_attr_setguardsize(&attr, std.mem.page_size) == .SUCCESS); |
