Well the problem does not come from malloc or free... indeed malloc is
thread safe on my linux (ptmalloc2...)
I feel lost:(...
++
Pekka Pessi a écrit :
On 5/15/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
Wel I still my bugs, and I have an idea or a question concerning the
source of the problem.
Are the malloc and free atomic, or at least thread safe? I don't know
but it seems it is not!
That could explain the bugs I have got, which are not rational.
(sometimes calloc or free failed ...)
If it is so, that means that the su_alloc.c should be lightly modified
to be totally thread safe. (Each malloc/realloc/calloc and free should
be done atomically)
Oh. Yes, you are right, home objects are not threadsafe, unless you
call su_home_threadsafe() on them. Cache and config objects are
threadsafe, but the resolver object is not.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel