This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: malloc and threads
- From: Wolfram Gloger <Wolfram dot Gloger at dent dot med dot uni-muenchen dot de>
- To: tisson dot k dot mathew at intel dot com
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 26 Nov 2002 18:11:36 +0100 ("MET)
- Subject: Re: malloc and threads
- References: <288F9BF66CD9D5118DF400508B68C4460701D896@orsmsx113.jf.intel.com>
Hi,
> A program that simply launches 10 threads that just malloc, wait 100
> milliseconds, and free the data and then loop.
Please post the code!
> This simple program segmentation faults. I'm using glibc version 2.2.2. I
> was wondering if malloc **still** has reentrancy problems or not ?
malloc never was reentrant and probably never will be.
If you mean "thread-safe", I'm not aware of any thread-related
problems in malloc, in particular not anything that would cause the
program described above to fail. That also holds for glicbc-2.2.2,
even though that's _really_ old now.
Regards,
Wolfram.