use bss instead of mmap for main thread's pthread thread-specific data

this simplifies code and removes a failure case
This commit is contained in:
Rich Felker 2011-04-01 22:07:59 -04:00
commit 6c16d3e98a
2 changed files with 4 additions and 9 deletions

View file

@ -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)
{