From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id E8B263858C60 for ; Mon, 12 Feb 2024 23:52:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8B263858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8B263858C60 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707781953; cv=none; b=r74LGEDZTws3mied1UBHa6X3oEvPN9nO453f7mCQ9eo7Vcy3x6usvv8Zcl5w9xptcMEgxwclAi6U7B52v8z39mS9jk3vwQL1FR/Vg6ViH8yYVyp43TSF3cs9CR9NHDLOlY2cjIvdgShKgf84p2LgEG7lbJwnYrA+ad9MUdStOtc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707781953; c=relaxed/simple; bh=0+tn3J3qZooid97QD4TcQsMQkI30Oo8rjmszooH158M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Mh50w3qIKDaAYmWXS2QJ0/SFzfmlSTzX/mpz9mc/tRnGLsZ4RuDT+PezDUzBJeyYbDJ/4owWY44I5rQ7/JuJrFYWXMifzLiObdPbJOVmLZK7NHoLxGNEwV6vjY5e2dUYPh4iT3Dw5GpWJict2XhfXa30+c6DUNWWM1SBuRLyV2M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTPS id ZTUwre0XnTHHuZg69rvHkB; Mon, 12 Feb 2024 23:52:29 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Zg67rhWBWwgsoZg68rexHt; Mon, 12 Feb 2024 23:52:28 +0000 X-Authority-Analysis: v=2.4 cv=Gv3h+V1C c=1 sm=1 tr=0 ts=65caaf3c a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=k7vzHIieQBIA:10 a=Qbun_eYptAEA:10 a=20KFwNOVAAAA:8 a=BykwZGX0PIF--OgayzwA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fcOiKmLezu3/N54QZ7iPJkJf9pPdbONkUW2cKsmwrrA=; b=JxOqD8KsSL2Qopvi/2IILYAqjI teNdTucuLcl14Yi8etbKXOmsHI/+Q9TG/+WrxHpdLTrtmzLRPWThNsC3KroW65MjwIb7u8wcS3/Xn hr57p9lPhEFu2m0x2P7N9LDwj; Received: from [161.98.8.3] (port=55932 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rZg67-002dJE-2E; Mon, 12 Feb 2024 16:52:27 -0700 From: Tom Tromey To: Nick Clifton Cc: Tom Tromey , binutils@sourceware.org Subject: Re: [PATCH 1/3] Make several more BFD globals thread-local References: <20240130010540.1754740-1-tom@tromey.com> <20240130010540.1754740-2-tom@tromey.com> X-Attribution: Tom Date: Mon, 12 Feb 2024 16:52:26 -0700 In-Reply-To: (Nick Clifton's message of "Mon, 12 Feb 2024 15:28:20 +0000") Message-ID: <87le7pkzph.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 161.98.8.3 X-Source-L: No X-Exim-ID: 1rZg67-002dJE-2E X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel) [161.98.8.3]:55932 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHOHxBqILHP/mQSIylCKS/2hHt8CJS/SggdYbuon5N2ZQV1SqzrbSRvzzSlMSTjeGwmvbo7uQDDdoQZjPifDwbTplVM4XBH/tf+W62+wG+sFHZmdryqD oBgpr1RdTQtLhJ/Ih5eChCj27463W5uU7KqvjWoYXsIYdsFUP0yloyL5O3N81iu7qceBXcFbJKbpBV5xPkMNm3MxJA7lSS36tmk= X-Spam-Status: No, score=-3016.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Nick" == Nick Clifton writes: Nick> I am particularly worried about making the error handler thread local Nick> when this might not match the expectations of a client using the BFD Nick> library. Since the error handler is currently global, a client can Nick> expect to set it once and have it affect all threads. I suppose so, but it's perhaps worth pointing out that thread-safety is new, and AFAIK only gdb uses it. So at least IMO there's a bit of leeway to define how this should work in the future, rather than feeling bound by what happens to happen today. [...] Nick> This sounds like a lot of work however, and probably something that Nick> ought to be done as part of a larger project to turn the BFD library Nick> into a thread-safe and multi-threaded library. Nick> What are you thoughts ? I will refresh my knowledge and get back to you soon. Meanwhile I'm going to push the two patches you approved, since they are actually somewhat independent of this particular issue. thanks Tom