The multiple_threads field itself is still used from C, through
SINGLE_THREAD_P, THREAD_GETMEM, and THREAD_SETMEM.
Checked with a build for i686-linux-gnu, x86_64-linux-gnu,
powerpc-linux-gnu, powerpc64-linux-gnu, powerpc64le-linux-gnu,
s390x-linux-gnu, sh4-linux-gnu, sparc64-linux-gnu, sparcv9-linux-gnu,
i686-gnu, and x86_64-gnu.
---
sysdeps/i386/htl/tcb-offsets.sym | 1 -
sysdeps/i386/nptl/tcb-offsets.sym | 1 -
sysdeps/powerpc/nptl/tcb-offsets.sym | 3 ---
sysdeps/s390/nptl/tcb-offsets.sym | 1 -
sysdeps/sh/nptl/tcb-offsets.sym | 1 -
sysdeps/sparc/nptl/tcb-offsets.sym | 1 -
sysdeps/x86_64/htl/tcb-offsets.sym | 1 -
sysdeps/x86_64/nptl/tcb-offsets.sym | 1 -
8 files changed, 10 deletions(-)
@@ -2,6 +2,5 @@
#include <tls.h>
#include <kernel-features.h>
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo)
SIGSTATE_OFFSET offsetof (tcbhead_t, _hurd_sigstate)
@@ -6,7 +6,6 @@ RESULT offsetof (struct pthread, result)
TID offsetof (struct pthread, tid)
CANCELHANDLING offsetof (struct pthread, cancelhandling)
CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo)
CLEANUP offsetof (struct pthread, cleanup)
CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
@@ -10,9 +10,6 @@
# define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
-#if TLS_MULTIPLE_THREADS_IN_TCB
-MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
-#endif
TID thread_offsetof (tid)
TAR_SAVE (offsetof (tcbhead_t, tar_save) - TLS_TCB_OFFSET - sizeof (tcbhead_t))
DSO_SLOT1 (offsetof (tcbhead_t, dso_slot1) - TLS_TCB_OFFSET - sizeof (tcbhead_t))
@@ -1,6 +1,5 @@
#include <sysdep.h>
#include <tls.h>
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
STACK_GUARD offsetof (tcbhead_t, stack_guard)
TID offsetof (struct pthread, tid)
@@ -6,6 +6,5 @@ RESULT offsetof (struct pthread, result)
TID offsetof (struct pthread, tid)
CANCELHANDLING offsetof (struct pthread, cancelhandling)
CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
-MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
TLS_PRE_TCB_SIZE sizeof (struct pthread)
MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
@@ -1,5 +1,4 @@
#include <sysdep.h>
#include <tls.h>
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
TID offsetof (struct pthread, tid)
@@ -2,6 +2,5 @@
#include <tls.h>
#include <kernel-features.h>
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo)
SIGSTATE_OFFSET offsetof (tcbhead_t, _hurd_sigstate)
@@ -9,6 +9,5 @@ CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
CLEANUP offsetof (struct pthread, cleanup)
CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
-MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
FEATURE_1_OFFSET offsetof (tcbhead_t, feature_1)
SSP_BASE_OFFSET offsetof (tcbhead_t, ssp_base)