From nobody Sun Oct 18 02:07:06 2026 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 4j6hrc0tJLz6xD5l for ; Sun, 18 Oct 2026 02:07:12 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j6hrb6KJtz4H15 for ; Sun, 18 Oct 2026 02:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792289231; 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=UWo0teDdndPKjnysuojguyxPMJKoE7aoIBVp69CvEQo=; b=fe2TY//W9Uf9kI6K2VyU+NgRyKmxj1CuhF/0pUjtbXQPfQkSB5MionhYnVPFVbSHOEA3Cy gTSaVqvzE62FQlzJhcHCkxbDoW5zMTiZQ9VharjMzOYTsBURgxhiKxsFFBaNMalXJW/VOQ U95tU+hDBayZHXqSuH4UB6Yib6Kc+X6zbsaZ3zt8IcdxQ5vt/3p+yN+rq9i6zpa7vKyERV qkqAexXNzpPLUlgMpaCdCaU48r+ntD9cFT3cK/PClvEw1B4M6UGJFqUUB/BHZP0ZNaGQ7W q7Qowx0o6OomYbVnq5sDyVW/0Bo9OZH+ak7AXgpfszuvej8KMZwSV0DNcgnUPw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792289231; b=Nv3dJJVnGFTYdUr7njcB0Ek71S/NbinPqVauECOdWjVD3M1sq4Wt4n5gp8ijLfWiuLDWL1 Bh8dqySiRGGo2T7MqNGjjwQ64MKWaDpbXkXcWdrGUtCX/SgCgPwcX8FZxxGcU0uExSyhl8 3kUsroxwbit+0xfgT63Hd5XdMZesx93UcvYz3sjK6lBv3VQp62y9WjbFV2O0nUDuRHwEpz Uk+v9igOw9sg+qbYQ/rPksEjUvbaZU5LYyHRT3zmR9CYGwPZIdO1yVVCbSURb+7A31RYHL qr8LKzuEEKY+5AYRZ6k4rLWFvOGccMO/MTRhYroQ7KJvsPoER/rj9scw2/I/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792289231; 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=UWo0teDdndPKjnysuojguyxPMJKoE7aoIBVp69CvEQo=; b=x9123ENVXII5el4peLljWiaOzTvWgD0fpDiOtY0VaNh60iO94BPNOV3HNGdZCQM2IehVpL bwQvRque+Dv3E4Aobeu8qIIsnFE5OBuI5tBuhkWT+RvE+zWwWDM9dIukzh3BobpeslxOzz 5wbueB94Ez4febE0Vs1X5t2sZG6tGvLUdBH6RNgFM8TgLaCh7nPzEoJH3PDq8VpYRtL/OP bT6aC22T4qtlbc+eSlXH7tfKnMhRvujLJ0iKCy2+UIb7yW6quxF6G4/qm781npCqi+moiq i9qdLCw6mJMttNfJ9FGorf8Duby6jFD6AwghWp8o8zf5ZAGoFB/5yKjPogFP3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j6hrb60CfzSBV for ; Sun, 18 Oct 2026 02:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3472b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 18 Oct 2026 02:07:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: ShengYi Hung Subject: git: a0e152973613 - main - libthr: Remove deadcode in join_common List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: aokblast X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a0e152973613e0d0d55257f4e1f614509b7ec4c9 Auto-Submitted: auto-generated Date: Sun, 18 Oct 2026 02:07:06 +0000 Message-Id: <6ad429ca.3472b.b64bd6f@gitrepo.freebsd.org> The branch main has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=a0e152973613e0d0d55257f4e1f614509b7ec4c9 commit a0e152973613e0d0d55257f4e1f614509b7ec4c9 Author: ShengYi Hung AuthorDate: 2026-10-13 19:41:00 +0000 Commit: ShengYi Hung CommitDate: 2026-10-18 02:06:59 +0000 libthr: Remove deadcode in join_common The while loop previous can only be break when ret == ETIMEDOUT. They never produce EBUSY. Remove the deadcode here. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60711 --- lib/libthr/thread/thr_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c index 33eb18638169..16137d482632 100644 --- a/lib/libthr/thread/thr_join.c +++ b/lib/libthr/thread/thr_join.c @@ -189,7 +189,7 @@ join_common(pthread_t pthread, void **thread_return, _thr_cancel_leave(curthread, 0); THR_CLEANUP_POP(curthread, 0); - if (ret == ETIMEDOUT || ret == EBUSY) { + if (ret == ETIMEDOUT) { backout_join(pthread, curthread); } else { ret = 0;