From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5y5tFo+UqGlJfRQAWB0awg (envelope-from ) for ; Wed, 04 Mar 2026 15:22:39 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=hnv23yfs; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 452E81E0DD; Wed, 04 Mar 2026 15:22:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 876F01E089 for ; Wed, 04 Mar 2026 15:22:38 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 0B2FB4BA2E0D for ; Wed, 4 Mar 2026 20:22:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B2FB4BA2E0D Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=hnv23yfs Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 4BE104BA23CF for ; Wed, 4 Mar 2026 20:20:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BE104BA23CF 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 4BE104BA23CF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772655649; cv=none; b=xvDA5xqmwCAV6CsjqaH6cCBqMydp5ZmM4hLQu/P5dhdEUJZ4zr7Mp4/W3etmELg2LxdSNOWQtINLJT5hxMn1zpYEsGWDBM7ZVtt4xk5bGlXTFHFRrcbJ6iD6RUs7s2SPXOGLgiW7xDxNEl6xaOBt1faCLzBX8stLosTQ9sQ551w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772655649; c=relaxed/simple; bh=YjlQyff2p3OC/WuGbJnARIzUFTn46rJfk4PvgsCWuvg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wPZi0cLgaNaHcdf2oR/IIuK6dS7Y9cL6US+mjc0v2H/3oPZJIX4/TpDSfQIv7K3Ze9Vu7eHOjBvi/VAtIaKD0liwXw2/BPT5jhYFTY9EaDSobXRcM2boeIlYxuDQFU5MH76cEMSNCsD4ikpkbCUAycpqBpjHsGFC3z/bBLQDeEU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BE104BA23CF Received: from eig-obgw-6007b.ext.cloudfilter.net ([10.0.30.166]) by cmsmtp with ESMTPS id xj1OvzQjzKXDJxsi8vV6ct; Wed, 04 Mar 2026 20:20:49 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id xsi6v62Cdh8QWxsi7vniXo; Wed, 04 Mar 2026 20:20:47 +0000 X-Authority-Analysis: v=2.4 cv=Mcdsu4/f c=1 sm=1 tr=0 ts=69a89420 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Yq5XynenixoA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=LXRjsgPjF2bJkcNVmAgA:9 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 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:Date:References:In-Reply-To :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=gvfMjUbDN54bo3nGRKJ689S7OA2XKR0viVWpeyZ/yAs=; b=hnv23yfs8tqobuHR92aV1pVXQs OdI4CPXNiCDiWmIpNhB8phZwTF8aY1eKHH4YAR25Uj6QbuqGHMdvLj2qLk1NaR9S1xngZzS3tQwCx OhN+zei6UAV6VAQIo++7P+HZK; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:46508 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxsi6-00000002tdQ-2qQ9; Wed, 04 Mar 2026 13:20:46 -0700 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v2 1/2] [gdb/symtab] Replace per-BFD lock with global BFD lock In-Reply-To: <20260216180925.3174052-2-tdevries@suse.de> (Tom de Vries's message of "Mon, 16 Feb 2026 19:09:24 +0100") References: <20260216180925.3174052-1-tdevries@suse.de> <20260216180925.3174052-2-tdevries@suse.de> X-Attribution: Tom Date: Wed, 04 Mar 2026 13:20:45 -0700 Message-ID: <87bjh3ny76.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1vxsi6-00000002tdQ-2qQ9 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:46508 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfMf62bBWvll2zXx2LIG4wa35fwMrE3dmzrdjIMzEjD4/PIUuAJYyng48jZ83ZOFKMX5yFrhcvVILeD185/iIYRzInFyWTEeFrgCwj0MEKRpglTEHOL1m vfJqK1hjSYVk8AOuN7kSL6Q0tX1T5+nf6zSXZ+KzWyTeQ3BVouxlChjwpXcWWFmzwyNIKnX32YHswA9l6J8QY1ff/CWVdI5ttEo= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Tom" == Tom de Vries writes: Tom> A naive way to implement this using the existing scheme of wrappers, would be to Tom> add a gdb_bfd_cache_close_all that locks all per-BFD locks, calls Tom> bfd_cache_close_all, and unlocks all per-BFD locks, like this: I've long considered the BFD cache to be pretty bad. I am not sure what would be better but it really doesn't work all that nicely for gdb, particularly with threads. Anyway I think this patch is ok. Approved-By: Tom Tromey I do wonder whether this causes any more lock contention. Tom