]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- pctrie really only requires two byte alignment so that there is a single
authorjeff <jeff@FreeBSD.org>
Sun, 12 May 2013 20:44:28 +0000 (20:44 +0000)
committerjeff <jeff@FreeBSD.org>
Sun, 12 May 2013 20:44:28 +0000 (20:44 +0000)
commit22653f957eb69fac0f06294cc78aa3683f1de07f
tree75fb36db2763c7f9668547dac224881ae0456c63
parent7d20e37fb658b0e2cd7f3c13dac8022e0e866a21
 - pctrie really only requires two byte alignment so that there is a single
   bit available for a flag in the pointer.  However, it felt more correct
   to enforce natural alignment of the key pointer.  Unfortunately on
   32bit architectures 64bit integers are not always naturally aligned.
   Change the assert to enforce only 32bit alignment of the 64bit key for
   now to fix the build.  A more correct fix would be to properly sort
   the struct buf fields which definitely suffer from bloat due to padding.
sys/sys/pctrie.h