diff options
| author | David CARLIER <devnexen@gmail.com> | 2023-05-25 20:32:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-25 14:32:17 -0500 |
| commit | 41502c6aa53a3da31b276c23c4db74db7d04796b (patch) | |
| tree | b1118c8e6c6042ff6fddeaf01dd97b2e236b52c2 /lib/std/Thread.zig | |
| parent | 230ea411f72303607a8c5c5467258eee61bd6939 (diff) | |
| download | zig-41502c6aa53a3da31b276c23c4db74db7d04796b.tar.gz zig-41502c6aa53a3da31b276c23c4db74db7d04796b.zip | |
std.Thread: refining stack size from platform minimum, changes more targetted towards platform like Linux/musl (#15791)
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 d213b167dd..ed6a9383e3 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -690,7 +690,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 = std.math.max(config.stack_size, 16 * 1024); + const stack_size = std.math.max(config.stack_size, c.PTHREAD_STACK_MIN); assert(c.pthread_attr_setstacksize(&attr, stack_size) == .SUCCESS); assert(c.pthread_attr_setguardsize(&attr, std.mem.page_size) == .SUCCESS); |
