From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32022 invoked by alias); 31 Aug 2004 06:41:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31997 invoked by uid 48); 31 Aug 2004 06:41:13 -0000 Date: Tue, 31 Aug 2004 06:41:00 -0000 Message-ID: <20040831064113.31995.qmail@sourceware.org> From: "adah at netstd dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040114172507.13684.evijaykumar@yahoo.com> References: <20040114172507.13684.evijaykumar@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13684] local static object variable constructed once but ctors and dtors called multiple times on same memory when called in multiple threads X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg03248.txt.bz2 List-Id: ------- Additional Comments From adah at netstd dot com 2004-08-31 06:41 ------- It looks to me that the solution applies the Double-Checked Locking Pattern, and could be unsafe on some multi-processor platforms, most notably Alpha and IA-64. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13684