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:
parent
5243e5f160
commit
6c16d3e98a
2 changed files with 4 additions and 9 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue