summaryrefslogtreecommitdiff
path: root/libpthread.a
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-26 21:16:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-26 21:24:06 +0200
commit6bb20b2e064e1e4473683fa6e598e80f4ea8aa00 (patch)
treee2ce059d7cb9c31a1569656018d7498959916932 /libpthread.a
parent596061769ee34741a42eb375b1a2e06fffb4c5a3 (diff)
Remove libihash use
It poses compilation bootstrapping inconvenience, non-standard symbol exposition, and this is overkill, considering the usual use of TSD, and the availability of TLS. * sysdeps/hurd/pt-key.h: Do not include <hurd/ihash.h>. (PTHREAD_KEY_MEMBERS): Turn thread_specifics to a void**, add unsigned thread_specifics_size. * sysdeps/hurd/pt-init-specific.c (__pthread_init_specific): Initialize thread_specifics_size to 0. * sysdeps/hurd/pt-setspecific.c: Do not include <hurd/ihash.h>. (__pthread_setspecific): Expand and access thread_specifics array instead of hash table. * sysdeps/hurd/pt-getspecific.c: Do not include <hurd/ihash.h>. (__pthread_getspecific): Access thread_specifics array instead of hash table. * sysdeps/hurd/pt-key-delete.c (pthread_key_delete): Clean thread_specifics array instead of hash table. * sysdeps/hurd/pt-destroy-specific.c: Do not include <hurd/ihash.h>. (__pthread_destroy_specific): Clean and free thread_specifics array instead of hash table. * Makeconfig (LDLIBS-tst-interpose-static-thread): Remove -lihash. (LDLIBS-tst-linkall-static): Remove -lihash. * Makefile (HURDLIBS): Remove ihash. (LDLIBS-pthread.so): Remove -lihash. * libpthread.a: Remove -lihash. * libpthread_pic.a: Remove -lihash_pic.
Diffstat (limited to 'libpthread.a')
-rw-r--r--libpthread.a2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread.a b/libpthread.a
index 7d3f8d3..e5bd2cc 100644
--- a/libpthread.a
+++ b/libpthread.a
@@ -19,4 +19,4 @@ EXTERN(_cthreads_ftrylockfile)
EXTERN(pthread_getattr_np)
EXTERN(pthread_attr_getstack)
-GROUP(-lpthread2 -lihash -lrt)
+GROUP(-lpthread2 -lrt)