From nobody Wed Jan 25 01:44:56 2023 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 4P1mqX5vYwz3bBtR; Wed, 25 Jan 2023 01:44:56 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1mqX5Jtgz45cR; Wed, 25 Jan 2023 01:44:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674611096; 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=5QCERgpgWlfcWbUxFo+cSwnYun/Hp8+830L4Tt3uCzM=; b=txRJum8V435cXb49cnJ9fMAQjL83peI6BFalHl7SaEtk/4VGXZgpHgQfWv8l2VCDIIrDF5 MduZsqqV+4tApoz6L+QjKOpw7pL0Nq+bKs31eQKniTlF56Tf7xY4VwBVEUclc7yXHFQRwm L7ywJZN9Rs0LhNX1zryhGrteqoWfjLotIW+TZln1VH2CxaLVVDCBS5ZlEJbAmoFfhZBsH2 z3rhhKaMKz3XwhmgK0N6s398WegQ+fuvjhC/le4ozdy3UujaWulTRL6gtu1rdyGZ+LL1Nt PEKZ4fB8cSlRfa2PjQTZXvC13Qj7UaxtWQ4M54Of4IVcZRLvxmmyafnCfq85rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674611096; 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=5QCERgpgWlfcWbUxFo+cSwnYun/Hp8+830L4Tt3uCzM=; b=e0sS45CJeEUHKPiV3eNsRaAaEKx6mNC17jlfMdA+rwpvdtdFPpdgYnHAUQ5NlgwfmdEasb ASPSCHzTkMOMvOvL3fD3HNxyrGxFj07m2IGopNKWxuV0oMD/K8eAu6HNGuF1zPO92WBQ2P kr7kshh8zEU/EqCufbEDWXIkXXGlDpSyyjMQobghsejQfiTf0enh0LF4bNq6rRw2GfDkzY nVCAWZGTTXACwd+tzhybuMQw0nEmZqel5UBXCh7EVhnLcLnXHExdcdyGsyas8Tc2IZbXSR Z7WNVGVDiRhss0JQX7NJ8Mfs9PalViWvAZgH/ZUilD+JAkfMJi19q3uugbiCAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674611096; a=rsa-sha256; cv=none; b=QlVBvoAMvThhFQBivBTjIXfV05ELg2LslFg0HOc7HTHa5heVaaa1NOe0D7pwskkcjCTere nD3AmCug+eMNrEOg0Iz+2ZVTeKmgJrpMk+U8Si+VJTUDSDlcwW6X9ln21fBmjcq5S71qVd Y+L+h5kg/DSnMJJ65BM0NBYQjXH0pB0RBZ552kO++H6P99maSz9Hbr1hN741SNlybW+fiN ztWpAHQ43pLdwFZclaCWsK7Jd9kphKmS+li5ct8paIeeoi0FzZQlxEzPiATfwnCcYSTIz7 sFAZjfYG/AtNtkLNBLU90j5CdMZwTi+Svv3NUCU/UDFQkbnlH5USLbi56kwGOA== 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 4P1mqX4PsvzWdL; Wed, 25 Jan 2023 01:44:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30P1iuwR094206; Wed, 25 Jan 2023 01:44:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30P1iuok094205; Wed, 25 Jan 2023 01:44:56 GMT (envelope-from git) Date: Wed, 25 Jan 2023 01:44:56 GMT Message-Id: <202301250144.30P1iuok094205@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4c4a29267cbd - main - libcxx: add comment explaining why umtx is only used for 64bits 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 4c4a29267cbdd05471322e03bfd5eff8eb68e750 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4c4a29267cbdd05471322e03bfd5eff8eb68e750 commit 4c4a29267cbdd05471322e03bfd5eff8eb68e750 Author: Konstantin Belousov AuthorDate: 2023-01-24 15:36:24 +0000 Commit: Konstantin Belousov CommitDate: 2023-01-25 01:19:42 +0000 libcxx: add comment explaining why umtx is only used for 64bits Requested by: imp Reviewed by: arichardson, emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D38178 --- contrib/llvm-project/libcxx/src/atomic.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/llvm-project/libcxx/src/atomic.cpp b/contrib/llvm-project/libcxx/src/atomic.cpp index 4a2e466bd145..f90d28c2e569 100644 --- a/contrib/llvm-project/libcxx/src/atomic.cpp +++ b/contrib/llvm-project/libcxx/src/atomic.cpp @@ -78,6 +78,11 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo } #elif defined(__FreeBSD__) && __SIZEOF_LONG__ == 8 +/* + * Since __cxx_contention_t is int64_t even on 32bit FreeBSD + * platforms, we have to use umtx ops that work on the long type, and + * limit its use to architectures where long and int64_t are synonyms. + */ static void __libcpp_platform_wait_on_address(__cxx_atomic_contention_t const volatile* __ptr, __cxx_contention_t __val)