This issue exists in stable/1807. In the main branch, the vec_header_t defined in vec_bootstrap.h has additional u32 dlmalloc_header_offset and this make sizeof(vc_header_t) =8 and vec header can be aligned at least at 8 byte boundary.
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Dai, Wei > Sent: Monday, September 17, 2018 11:29 AM > To: [email protected] > Subject: [vpp-dev] Does vector header always be aligned ? > > If a vec header had better be aligned at 8 byte boundary, currently > _vec_resize_inline( ) can't guarantee the vec header is aligned as no > alignment requirement of vec header is input into this function. > > For example, when a hash is created, the hash vector (hash_pair_t) is > aligned at > 8 byte boundary, but the hash_header often is only aligned at 4 byte > boundary not 8 byte boundary. > hash_header(void *v) let hash_header be 68 bytes ahead of hash vector . > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10512): https://lists.fd.io/g/vpp-dev/message/10512 Mute This Topic: https://lists.fd.io/mt/25719963/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
