mirror of
https://github.com/openbsd/src.git
synced 2026-04-22 21:24:34 +00:00
bump PTHREAD_KEYS_MAX to 512
the rust libstd emutls version is using one pthread_key per thread-variable. it means the maximum number of thread-variable at a time is PTHREAD_KEYS_MAX. with recent rustc 1.91.0, we start hiting the limit while compiling some programs (like sysutils/rustic). ok robert@ "Let's go 512 and hope someone eventually does proper TLS" deraadt@
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pthread.h,v 1.4 2018/03/05 01:15:26 deraadt Exp $ */
|
||||
/* $OpenBSD: pthread.h,v 1.5 2025/11/11 18:54:05 semarie Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
|
||||
@@ -50,7 +50,7 @@
|
||||
* Run-time invariant values:
|
||||
*/
|
||||
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
|
||||
#define PTHREAD_KEYS_MAX 256
|
||||
#define PTHREAD_KEYS_MAX 512
|
||||
#define PTHREAD_STACK_MIN (1U << _MAX_PAGE_SHIFT)
|
||||
#define PTHREAD_THREADS_MAX ULONG_MAX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user