mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
make ‘struct pthread’ a complete type
* nptl/descr.h (struct pthread): Remove end_padding member, which made this type incomplete. (PTHREAD_STRUCT_END_PADDING): Stop using end_padding. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
30379efad1
commit
3edc4ff2ce
1 changed files with 4 additions and 4 deletions
|
@ -408,11 +408,11 @@ struct pthread
|
||||||
/* rseq area registered with the kernel. */
|
/* rseq area registered with the kernel. */
|
||||||
struct rseq rseq_area;
|
struct rseq rseq_area;
|
||||||
|
|
||||||
/* This member must be last. */
|
/* Amount of end padding, if any, in this structure.
|
||||||
char end_padding[];
|
This definition relies on rseq_area being last. */
|
||||||
|
|
||||||
#define PTHREAD_STRUCT_END_PADDING \
|
#define PTHREAD_STRUCT_END_PADDING \
|
||||||
(sizeof (struct pthread) - offsetof (struct pthread, end_padding))
|
(sizeof (struct pthread) - offsetof (struct pthread, rseq_area) \
|
||||||
|
+ sizeof (struct rseq))
|
||||||
} __attribute ((aligned (TCB_ALIGNMENT)));
|
} __attribute ((aligned (TCB_ALIGNMENT)));
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
|
|
Loading…
Add table
Reference in a new issue