aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_key_create.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-01 22:07:59 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-01 22:07:59 -0400
commit6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8 (patch)
treea90fe8880f6a601f81885b839369d2e030da9a70 /src/thread/pthread_key_create.c
parentremove obsolete and useless useconds_t type (diff)
downloadgrovel-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.tar.gz
grovel-6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8.tar.xz
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.c1
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)
{