Backport from HEAD:
* include/apr_rmm.h: Document alignment requirement for apr_rmm_init,
and hence the alignement guarantee which apr_rmm_addr_get can offer.
* misc/apr_rmm.c: Ensure allocated blocks use default address
alignment by using aligned structure sizes throughout.
* misc/apr_rmm.c (find_block_of_size): Remove redundant conditional.
(apr_rmm_init, apr_rmm_destroy, apr_rmm_free): Catch some _UNLOCK
return values.
* misc/apr_rmm.c (apr_rmm_overhead_get): Account for worst case
alignment overhead too.
* test/testrmm.c (test_rmm): Check for address alignment.
PR: 29873
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/APU_0_9_BRANCH@59137 13f79535-47bb-0310-9956-ffa450edef68
4 files changed