From 6782806d8f6664d87d17bb30f8ce4e0c7c931e17 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 17 Oct 2015 12:06:48 +0200 Subject: malloc: Rewrite with explicit TLS access using __thread --- sysdeps/nptl/malloc-machine.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sysdeps/nptl') diff --git a/sysdeps/nptl/malloc-machine.h b/sysdeps/nptl/malloc-machine.h index c0ec49e..8dea606 100644 --- a/sysdeps/nptl/malloc-machine.h +++ b/sysdeps/nptl/malloc-machine.h @@ -58,16 +58,6 @@ extern void *__dso_handle __attribute__ ((__weak__)); __linkin_atfork (&atfork_mem) #endif -/* thread specific data for glibc */ - -#include - -typedef int tsd_key_t[1]; /* no key data structure, libc magic does it */ -__libc_tsd_define (static, void *, MALLOC) /* declaration/common definition */ -#define tsd_key_create(key, destr) ((void) (key)) -#define tsd_setspecific(key, data) __libc_tsd_set (void *, MALLOC, (data)) -#define tsd_getspecific(key, vptr) ((vptr) = __libc_tsd_get (void *, MALLOC)) - #include #endif /* !defined(_MALLOC_MACHINE_H) */ -- cgit v1.1