Hi Steve,
To be honest, I don't see any reason for not using je_vmem_posix_memalign(). Simply, I didn't realize there could be any problem with je_vmem_memalign(). Perhaps I got inspired by jemalloc internals, as all of memalign(), posix_memalign(), aligned_alloc() and valloc() are implemented by a call to internal function imemalign().
Anyway, I think we should modify posix_memalign() as you described. I'll make a
Also, instead of changing jemalloc configure logic and forcing it to export memalign(), we should rather modify the way how VMMALLOC_OVERRIDE_MEMALIGN is defined and make it depend on JEMALLOC_OVERRIDE_MEMALIGN definition.
Thanks,
K.