64-bit alignment problems.
Ken Murchison
murch at andrew.cmu.edu
Mon Sep 17 08:52:37 EDT 2007
Andy Fiddaman wrote:
> On Fri, 14 Sep 2007, Ken Murchison wrote:
> ; This patch tries to force the entire buffer to be aligned, rather than
> ; aligning each 64-bit field individually. Don't know if this will work or not.
>
> The concept seems to work fine. There are some other places that
> the same trick needs to be done - mailbox_expunge() and restore_expunged()
> for example.
>
> I adapted it slightly (see attachment) to use a union to conserve heap
> space and a macro given the number of places it was proving necessary.
Good point. I'm wondering if we need the struct at all, and can just
use a union.
--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University
More information about the Info-cyrus
mailing list