[sr-dev] [kamailio/kamailio] shm_malloc to align on 16 bytes for large allocations (Issue #3157)

space88man notifications at github.com
Thu Jun 23 04:03:27 CEST 2022


I am closing the issue for now as it is too intrusive to alter the allocators for one module.

One future possiblity is to add a xx_malloc16 xx_realloc16 to explicitly request for 16-byte alignment for each allocator.

* For `tls_wolfssl` I will think of other strategies (bundling perhaps like OPENSIPS)
* wrappers for `ser_*` functions that will internally align to 16: for realloc this costs one `memmove` if the returned array has different alignment from the alternative array


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3157#issuecomment-1163840897
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3157/1163840897 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220622/fddd81a4/attachment.htm>


More information about the sr-dev mailing list