HomeFreeBSD

MFC 315323: Use UMA_ALIGN_PTR instead of sizeof(void *) for zone alignment.

Description

MFC 315323: Use UMA_ALIGN_PTR instead of sizeof(void *) for zone alignment.

uma_zcreate()'s alignment argument is supposed to be sizeof(foo) - 1,
and uma.h provides a set of helper macros for common types. Passing
sizeof(void *) results in all of the members being misaligned triggering
unaligned access faults on certain architectures (notably MIPS).

Details

Provenance
jhbAuthored on
Parents
rS318167: Fix stack tracing in dtrace for powerpc
Branches
Unknown
Tags
Unknown