From nobody Tue Jan 21 00:26:40 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YcSgj2WDYz5lBxC; Tue, 21 Jan 2025 00:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YcSgh5Ppwz3Mg2; Tue, 21 Jan 2025 00:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737419200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Aem3n4a8fcWC739lIDyBYOW0GtEfFjcEpP4kpT62Obc=; b=TaCuJtxRkldiMgXl2Lrsqt0CGhYYX3z2C+kKGrMJ0UKwjfPa9sZP85+4GVIdDI44c3I3+7 WGuZMmm7NKSxn9Acrzixmok5a1R6oVeerPZyps6EEXEb0MDmHtG8uIthhA75FMlbcpr/m/ L7ywzgBR6x5md0n9xq2mEl8th+p+Nb/dS0JXIgSVdN3wetqvarekxB4wt+AOZZ/695b7W0 Cyw/xq4caEJPtDDCHs768BOSp31M8eTmePVVoTx6oiXqPdF/1s+D/mq1+xiDhknpnVTZU+ bhHYneZmIhzm26gxgv8gvTgw4Cjy3gENFUSOwC7KYwye3iHC39zC7dQK/mdFsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737419200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Aem3n4a8fcWC739lIDyBYOW0GtEfFjcEpP4kpT62Obc=; b=BMKoVocTYqTY8dLl+xKYn9XAdbsBEiKfHCDGP5woMhfyeAa5pYCnZ/D63+DvEdFhoBMar7 pGG4ijuyXD0x3EftQA2z9I05XF6TYClGPVl7OCBR8aQSnVv4N7EVXGyiT0WOuXaFOhOOeC Rkyx1TLp7DgPRc6FruClPPuTnmrITYlLG3mc1SPzRqOj3itT6T8gKvVrJx7QgsVdndlH0n hz9LJ6X0JR11W/X08tv822jeWJ3NNUaIVzsfrbvAnsdHPAGprJCXZHW9iHCQo2ljoWBBEn +atOJYPETmVtDtEgWy4Ns7yUvFl/Ojhr59mEHrOLjGVBzDxIsiivw+BkcOSDvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737419200; a=rsa-sha256; cv=none; b=xCL2mi0fFEETSYCbKuJ0NhY1bhxcSxU/K9Kv5G6XONVYQC2NAdhT0IlB5vASvRp+KqAuqW 7aGVjPG2OzicrNswJIrnSUwXjJkZAQf69HCz70LcKUZidYVl8bEG8lhesXfcuMmSk/IWcF rHeX3dnkocqaN3kYmsYD0cBPXFh6AWvp5mqacMUKGe/f4mvZqOZaWIWmSidRuO8IQf9vd7 i4izOK7hwWaGbTmaU4YPCEP3x4dY/tm08Q07AN5syOjgcT9eeQryI+Wm7VZ6v+EzWQg2h4 eGETdBB7uaBy5TAQMPzaDwO6aR19MoKs5A/avGQ7wJDLPrQHKcLHB3w+YnDRfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YcSgh4zBvzkSv; Tue, 21 Jan 2025 00:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50L0Qemh013213; Tue, 21 Jan 2025 00:26:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50L0QeDW013210; Tue, 21 Jan 2025 00:26:40 GMT (envelope-from git) Date: Tue, 21 Jan 2025 00:26:40 GMT Message-Id: <202501210026.50L0QeDW013210@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d6a896c3c83b - stable/14 - pthread_mutex_trylock(): init libthr if needed List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d6a896c3c83b1a0f473563dad5fc3f0427ee6f64 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d6a896c3c83b1a0f473563dad5fc3f0427ee6f64 commit d6a896c3c83b1a0f473563dad5fc3f0427ee6f64 Author: Konstantin Belousov AuthorDate: 2025-01-12 11:28:52 +0000 Commit: Konstantin Belousov CommitDate: 2025-01-21 00:24:55 +0000 pthread_mutex_trylock(): init libthr if needed (cherry picked from commit 9718f18471f700b271eb898c764e02b7fcd3766f) --- lib/libthr/thread/thr_mutex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index ca8971cc720a..32bdc4afe65f 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -619,6 +619,7 @@ __Tthr_mutex_trylock(pthread_mutex_t *mutex) uint32_t id; int ret, robust; + _thr_check_init(); ret = check_and_init_mutex(mutex, &m); if (ret != 0) return (ret);