From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9386 invoked by alias); 3 Apr 2011 04:41:03 -0000 Received: (qmail 9370 invoked by uid 22791); 3 Apr 2011 04:41:02 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_SV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Apr 2011 04:40:53 +0000 From: "rfm at gnu dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libobjc/38307] Calling of the +initialize method is not completely thread-safe X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libobjc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rfm at gnu dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ayers at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Attachment #23702 is obsolete Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 03 Apr 2011 04:41:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00181.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38307 rfm at gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23702|0 |1 is obsolete| | --- Comment #9 from rfm at gnu dot org 2011-04-03 04:40:27 UTC --- Created attachment 23857 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23857 Revised/improved patch against svn trunk Here's a new version of the patch. This adds support for the new runtime function class_respondsToSelector()which was previously not considered as it was added to the runtime after the original fic for this bug. This patch also fixes a completely unrelated possible bug that class_respondsToSelector() and __objc_responds_to() were not necessarily returning OjC BOOL values (ie could in theory return values other than 0 or 1).