diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:24:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:24:16 +0000 |
commit | 86acd5963441f4bfc087ceca8c30f8d72c6a5fa6 (patch) | |
tree | 1acc784992aafa1c297cc98232d609166f57d306 /nptl/allocatestack.c | |
parent | 0a54ab53f2bbbd380b019dc665047fb3acf37e3a (diff) | |
download | glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.tar.gz glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.tar.xz glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.zip |
* sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
THREAD_COPY_PRIVATE_FUTEX): Define. * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define. * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX. * init.c (__pthread_initialize_minimal_internal): Use THREAD_SET_PRIVATE_FUTEX.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 9c9372b2a8..4ac04dbfa1 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -376,10 +376,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif -#ifndef __ASSUME_PRIVATE_FUTEX +#ifdef THREAD_COPY_PRIVATE_FUTEX /* The thread must know when private futexes are supported. */ - pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, - header.private_futex); + THREAD_COPY_PRIVATE_FUTEX (pd); #endif #ifdef NEED_DL_SYSINFO @@ -516,10 +515,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif -#ifndef __ASSUME_PRIVATE_FUTEX +#ifdef THREAD_COPY_PRIVATE_FUTEX /* The thread must know when private futexes are supported. */ - pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, - header.private_futex); + THREAD_COPY_PRIVATE_FUTEX (pd); #endif #ifdef NEED_DL_SYSINFO |