[zeromq-dev] Memory alignment

Pieter Hintjens ph at imatix.com
Thu Jul 7 17:29:59 CEST 2011

Hi Emmanuel,

> There is one info that I forgot to give you. The message part which is
> not aligned on a 4 bytes boundary is a "small message"...

This looks like a design omission, your analysis looks accurate.
Increasing the size to 4 bytes should be a good solution. Adding an
unused 2-byte value may not work due to optimizers.

Feel free to make that change, test it, and send us a patch. I'll get
that into 2.1.8 once Martin's confirmed it.


More information about the zeromq-dev mailing list