Teeny Tiny bug.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 23, 2009 at 11:46 PM, John Ridges <jridges at masque.com> wrote:
> Hi Benny.
>
> I've found that memory allocated with pj_pool_alloc ?is not actually aligned
> according PJ_POOL_ALIGNMENT. It seems that when the memory is allocated from
> the pool block, it is aligned properly within the pool block, but that it
> doesn't matter because the pool block itself (as specified by
> pj_pool_block::cur) isn't aligned when it is initially assigned (in
> pj_pool_create_block, pj_pool_create_int, and reset_pool in pool.c). The
> only reason I noticed this is that I was using SSE instructions, and I kept
> getting exceptions thrown because they require that the memory be aligned to
> 16 byte boundaries.
>

Uhmm.. you right! Just fixed this in http://trac.pjsip.org/repos/ticket/980

Thanks!
 Benny



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux