===================================================================
@@ -307,7 +307,7 @@
POSIX types such as pthread_mutex_t require 16-byte alignment. Again,
this is non critical since 16-byte alignment is no longer needed for
atomic operations. */
-#define MALLOC_ABI_ALIGNMENT (TARGET_SOM ? 64 : 128)
+#define MALLOC_ABI_ALIGNMENT (TARGET_64BIT ? 128 : 64)
/* Make arrays of chars word-aligned for the same reasons. */
#define DATA_ALIGNMENT(TYPE, ALIGN) \
===================================================================
@@ -62,3 +62,8 @@
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+/* POSIX types such as pthread_mutex_t require 16-byte alignment to retain
+ layout compatibility with the original linux thread implementation. */
+#undef MALLOC_ABI_ALIGNMENT
+#define MALLOC_ABI_ALIGNMENT 128