diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-01 22:07:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-01 22:07:59 -0400 |
commit | 6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8 (patch) | |
tree | a90fe8880f6a601f81885b839369d2e030da9a70 /src/thread/pthread_key_create.c | |
parent | 5243e5f1606a9c6fcf01414ed5561616588bc0b9 (diff) | |
download | musl-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.tar.gz musl-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.tar.bz2 musl-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.tar.xz musl-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.zip |
use bss instead of mmap for main thread's pthread thread-specific data
this simplifies code and removes a failure case
Diffstat (limited to 'src/thread/pthread_key_create.c')
-rw-r--r-- | src/thread/pthread_key_create.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/pthread_key_create.c b/src/thread/pthread_key_create.c index c703bfe3..8d7f8162 100644 --- a/src/thread/pthread_key_create.c +++ b/src/thread/pthread_key_create.c @@ -1,6 +1,7 @@ #include "pthread_impl.h" const size_t __pthread_tsd_size = sizeof(void *) * PTHREAD_KEYS_MAX; +void *__pthread_tsd_main[PTHREAD_KEYS_MAX] = { 0 }; static void nodtor(void *dummy) { |