RE: apr_palloc is not thread safe

2013-05-31 Thread TROY . LIU 劉春偉
17:22 troy To: TROY.LIU 劉春偉 Cc: d...@apr.apache.org; modules-dev@httpd.apache.org Subject: Re: apr_palloc is not thread safe TROY.LIU 劉春偉 troy@deltaww.com.cn writes: In our practice, we found two threads get same address returned by apr_palloc. It will happen about one hour later after

Re: apr_palloc is not thread safe

2013-05-31 Thread Thomas Eckert
] On Behalf Of Philip Martin Sent: Thursday, May 30, 2013 17:22 troy To: TROY.LIU 劉春偉 Cc: d...@apr.apache.org; modules-...@httpd.apache.org Subject: Re: apr_palloc is not thread safe TROY.LIU 劉春偉 troy@deltaww.com.cn writes: In our practice, we found two threads get same address returned

Re: apr_palloc is not thread safe

2013-05-30 Thread Philip Martin
* accesses the parent pool. The pool system allows multiple threads to use multiple pools. There is no point trying to make apr_palloc thread-safe as the API is not designed to work that way. Even if apr_palloc was thread-safe how would apr_pool_clear work? A related discussion: http://mail