libcvd-members
[Top][All Lists]
Advanced

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

Re: [libcvd-members] Aligned mem crashes ?


From: twd20
Subject: Re: [libcvd-members] Aligned mem crashes ?
Date: Sun, 26 Nov 2006 13:07:32 +0000

Georg

My solution to this is to not use libcvd's aligned_mem stuff but to
provide a malloc() which overwrites the weak symbol in glibc and calls
posix_memalign() with an alignment of 16.

This means that all new()s or malloc()s will return 16 aligned memory
(wasting an average of 4 bytes a go) - but it means that all the aligned
stuff just works.

Tom



On Sun, 2006-11-26 at 00:29 +0000, Georg Klein wrote:
> In a multi-threaded app, I keep getting crashes to do with aligned_mem;
> worst culprit is if both threads are doing convolveGaussian but it seems 
> just creating/deleting images is enough. Any ideas? I've spammed my code 
> with #define _REENTRANT but it doesn't really seem to help..
> 
> 
> _______________________________________________
> libcvd-members mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/libcvd-members
-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]