This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch stricter-msg-alignment
in repository efl.
View the commit online.
commit ea31a3d71551571546bb682b789106b332473e7d
Author: mkarcher <enlightenm...@mkarcher.dialup.fu-berlin.de>
AuthorDate: Fri Mar 14 11:54:52 2025 -0700
Use a type with likely natural alignment for Eina_Thread_Queue_Msg
The allocator ensures that "Messages are always 8 byte aligned within message memory" (as the documentation comment for Eina_Thread_Queue_Msg specifies), but this only works if the message memory itself is 8 byte aligned. Alas, the "data" member in Eina_Thread_Queue_Msg_Block is not necessarily aligned sufficiently. Using size_t instead of int for the size member should encourage the compiler to insert sufficient padding into the message block structure to ensure "natural" alignment ( [...]
---
src/lib/eina/eina_thread_queue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/eina/eina_thread_queue.h b/src/lib/eina/eina_thread_queue.h
index 094d8bd41b..4b5d80b9fd 100644
--- a/src/lib/eina/eina_thread_queue.h
+++ b/src/lib/eina/eina_thread_queue.h
@@ -57,7 +57,7 @@ typedef struct _Eina_Thread_Queue_Msg_Sub Eina_Thread_Queue_Msg_Sub;
struct _Eina_Thread_Queue_Msg
{
- int size; /*< The size of the message in bytes, including this header */
+ size_t size; /*< The size of the message in bytes, including this header */
};
struct _Eina_Thread_Queue_Msg_Sub
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.