mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Reduce stack virtual memory consumption on Linux
This commit is contained in:
parent
cc8a9eb93c
commit
36e5861b0c
31 changed files with 583 additions and 166 deletions
|
@ -2,7 +2,7 @@
|
|||
#define COSMOPOLITAN_LIBC_THREAD_THREAD_H_
|
||||
|
||||
#define PTHREAD_KEYS_MAX 46
|
||||
#define PTHREAD_STACK_MIN 65536
|
||||
#define PTHREAD_STACK_MIN 32768
|
||||
#define PTHREAD_USE_NSYNC 1
|
||||
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
|
||||
|
||||
|
@ -129,8 +129,8 @@ typedef struct pthread_attr_s {
|
|||
int __contentionscope;
|
||||
int __sigaltstacksize;
|
||||
uint64_t __sigmask;
|
||||
unsigned __guardsize;
|
||||
unsigned __stacksize;
|
||||
size_t __guardsize;
|
||||
size_t __stacksize;
|
||||
void *__stackaddr;
|
||||
void *__sigaltstackaddr;
|
||||
} pthread_attr_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue