3 ms·
Many (most? all?) allocators are guaranteed to give you back aligned pointers. For instance, jemalloc(3) on amd64 platforms will give back 16-byte aligned poin
by tynorf 7y ago
Many (most? all?) allocators are guaranteed to give you back aligned pointers.
For instance, jemalloc(3) on amd64 platforms will give back 16-byte aligned pointers:
[...] The allocated space is suitably aligned
(after possible pointer coercion) for storage of any type of object.