Subj : Re: SpiderMonkey on Mac/Codewarrior To : netscape.public.mozilla.jseng From : Shanti Rao Date : Sun Aug 15 2004 12:54 pm Wow! 1-byte alignment works now! Brendan Eich wrote: > Shanti Rao wrote: > >> The other thing you may want to do is set the byte alignment to 4. I >> think CW uses 8 by default. Don't use 1 or 2, though, because SM uses >> the 'shadow' bytes between memory blocks to do garbage collection. > > > > No shadow bytes -- SpiderMonkey calls malloc with an overlarge amount as > needed, and aligns the return value to the required modulus. > > What problems did you see with 1 or 2 byte alignment? Was this recent, > or ages ago? > > /be .