[Cbe-oss-dev] Memalign and free doesn't work

Michael Ellerman michael at ellerman.id.au
Wed Oct 14 08:52:12 EST 2009


On Tue, 2009-10-13 at 09:45 -0700, Geoff Levand wrote:
> On 10/10/2009 06:13 AM, Philip Pratt-Szeliga wrote:
> > Hello,
> > 
> > I am noticing that memalign and free doesn't work on the ps3.
> 
> The POSIX standard says that free() doesn't need to free the
> resources from a memalign().  I guess that is what is happening
> here.
> 
> If possible, I recommend you convert your program to use
> statically allocated variables.

My man page says:

POSIX requires that memory obtained from posix_memalign() can be  freed
using free(3).

But I don't know if that works for spu programs.

cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20091014/2d488027/attachment.pgp>


More information about the cbe-oss-dev mailing list