mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Cleanup mutex internal offset tests
The offsets of pthread_mutex_t __data.__nusers, __data.__spins, __data.elision, __data.list are not required to be constant over the releases. Only the __data.__kind is used for static initializers. This patch also adds an additional size check for __data.__kind. Checked with a build against affected ABIs. Change-Id: I7a4e48cc91b4c4ada57e9a5d1b151fb702bfaa9f
This commit is contained in:
@ -617,5 +617,8 @@ check_stacksize_attr (size_t st)
|
||||
_Static_assert (offsetof (type, member) == offset, \
|
||||
"offset of " #member " field of " #type " != " \
|
||||
ASSERT_PTHREAD_STRING (offset))
|
||||
#define ASSERT_PTHREAD_INTERNAL_MEMBER_SIZE(type, member, mtype) \
|
||||
_Static_assert (sizeof (((type) { 0 }).member) != 8, \
|
||||
"sizeof (" #type "." #member ") != sizeof (" #mtype "))")
|
||||
|
||||
#endif /* pthreadP.h */
|
||||
|
Reference in New Issue
Block a user