[Bug c++/13684] local static object variable constructed once but ctors and dtors called multiple times on same memory when called in multiple threads
adah at netstd dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 5 03:19:00 GMT 2004
------- Additional Comments From adah at netstd dot com 2004-09-05 03:19 -------
I myself have had headaches about this problem (unsafe DLCP) too. Indeed, I do
not have problems with DLCP, since I have access only to IA-32 platforms, but I
really like to make my code more portable.
Currently there is no known way to make memory barriers portable. So I guess
it might be a good idea that GCC provide built-in functions to do the job. On
IA-32 platforms it is a just a null operation, but on other systems it might
really do significant stuff.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |adah at netstd dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13684
More information about the Gcc-bugs
mailing list