[RFC PATCH glibc 12/12] C11 thrd: Downgrade the default alignment of mtx_t
Sergey Bugaev
bugaevc@gmail.com
Sun Feb 12 11:10:43 GMT 2023
..so that it can match the alignment of pthread_mutex_t on x86_64-gnu.
This likely breaks many other arches (if not all of them), though.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
sysdeps/pthread/threads.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/pthread/threads.h b/sysdeps/pthread/threads.h
index 860d597d..207c1dee 100644
--- a/sysdeps/pthread/threads.h
+++ b/sysdeps/pthread/threads.h
@@ -64,7 +64,7 @@ typedef __once_flag once_flag;
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEX_T];
- long int __align __LOCK_ALIGNMENT;
+ int __align __LOCK_ALIGNMENT;
} mtx_t;
typedef union
--
2.39.1
More information about the Libc-alpha
mailing list