Thread safety in C++ (new/delete) in Potato?
Folks,
I have come across a problem that suggests that new and/or delete are
not thread safe. If I put mutexs around my new and delete all is well
but memory overuns otherwise (admittedly very rare).
From reading the docs, I understand that libstdc++ needs to be
configured with enable-threads to be thread safe. I checked the
Debian diff for the package (gcc_2.95.2-13.1.diff) and this is
defined.
Anybody have a clue?
--Martin
P.S. Perhaps this is a memory management problem in Linux?
===========================================================================
Martin Weinberg Phone: (413) 545-3821
Dept. of Physics and Astronomy FAX: (413) 545-2117/0648
530 Graduate Research Tower weinberg@astro.umass.edu
University of Massachusetts http://www.astro.umass.edu/~weinberg/
Amherst, MA 01003-4525
Reply to: