Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23608rwd; Wed, 17 May 2023 14:03:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+qyph62plXXwZxJI9yzHrTK7r448mUku+5QESIm19L+SE6YvOehftoKoVnX93Iklx8l28 X-Received: by 2002:a17:903:244c:b0:1ab:19ff:3a20 with SMTP id l12-20020a170903244c00b001ab19ff3a20mr82793pls.54.1684357430516; Wed, 17 May 2023 14:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684357430; cv=none; d=google.com; s=arc-20160816; b=NfIjPgaX0FffFpT4URq4mTIY6wYnWcvfE19U6Guj13fLc3XVxy7rS6Ph87ZhZw4Xb7 i8I3aLdm7FlZEjTxjY1wizFIAbZ4u83uFhBgfCQi4DOuZt7lrhVQs2uua07Pw8HmCCF7 XoSsi51IlgDxqKh7kMYbnPwHpMQd2YHH50GwZiCg9um5EzM8lL/arehXwxDVAzsNS1q2 FXVFd8Eqb6YefF/PtOJ+yvCc6YY54EDoVsyK1Nx44krIYMk7C1DAc3ogiqEtoifGID+L d/pmbBwDAVCIOwdmHlrGRDCLiwA8xqiaPsUCdpxZSNz0kREDrojdDE2vFWWooSdpwcco h1OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tOWjDaNo3/cJ5irwgAWSl2hXx4QRdUNNrZTKP14O2Xo=; b=EEIhqnB8H36ppgV04kvxSo5P/R9GbltnEsk55Kzrgo0mCusnTJNpgsm/HkT+BqfaHw 4l8Z6MRTGBbqACe2F4qCuf4Y+VLiAQFnmQt9C1Dd2v8fmWDkCNoZZSie7YjXv++H4xhD lBgQsexdrgD2SPrq2+lL13pFaH8mzjumcGNN4lWxsNLNOrh/Lh3YFdCmqN5ce3E5C79F 05crJlqUkmXQEvCCdjde58hWiLf3MUVjrGLFE6MvNYAkaniw60vY3eGPnxJryOV+pzHd 5vGxjrFlmGIwT1IjDciqTGvQnIzBKeRB0Do5SkqZ9OsOlNiZXlH2suQAJAuutujFBxSX cfVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DKhNLAOx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id li12-20020a170903294c00b001ac4e2d2b58si19895734plb.112.2023.05.17.14.03.33; Wed, 17 May 2023 14:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DKhNLAOx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbjEQUq7 (ORCPT + 99 others); Wed, 17 May 2023 16:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjEQUq6 (ORCPT ); Wed, 17 May 2023 16:46:58 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3655255B3; Wed, 17 May 2023 13:46:57 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-19674cab442so915542fac.3; Wed, 17 May 2023 13:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684356416; x=1686948416; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tOWjDaNo3/cJ5irwgAWSl2hXx4QRdUNNrZTKP14O2Xo=; b=DKhNLAOxM7f1QqxL7ESIoOIpDxHgo31eq97FmRl6lrjFs42gZeymo5Y0DuuXWMPsVt qFW7Gm3we0p+BJ/HK2pzFKC8LM34kFMYICsOSq6KWoDmS1tvNric1jAPpMdNZS9OtWCt iDg9+/XmCTklCtzCDH9T3BGqgJ3lmtFKIqxmhVuNSdzpBN6hrpXR3CKylIw2efJPBVKB Imj1pATGnSmMHr83gCVz0TR4Uz3/e9hjym2wy/LIVbPnKc4IYLknJ0vrzo7NKDZoeGl4 XnqphKA/6CJtr5/o2GZ0yn8YXwgmYnnD8vTmCfMBotd6RCNZ3eSzXmzRLUq9mQ+2eFOK i0bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684356416; x=1686948416; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tOWjDaNo3/cJ5irwgAWSl2hXx4QRdUNNrZTKP14O2Xo=; b=cbjAX/oWSczdx2ysPseTXl6Et5vo7D8Fbl4fjERDmqafgaAuGbDFrNrWtOarlxnWq1 9w3RVpKqH7tsQLMsaaYqK42/0Ye+FIIDx7+9NwrgsEPT8SNstINcQ4PbeYUzImw6TFK/ n3F0cVY6ydwHu6legrfCZWrkSRgtL1Zw7zau5u9Oux+pUl7gXK8+aPXLzQLd9k7JI4m1 j2FotPiFskZZeJqwImmfPlW6VWYDMQUkP4wCurOs72yYvbsWHat3h96Ess7ufA4dZoRj o/7wuHAtHtS7N0KobJs/K/95il7aViGcuQqe2czYv0hs318rBBYkB7V9srZ1sLTwGUSO pI4g== X-Gm-Message-State: AC+VfDwZJTE17STQQTog4SFG/SQfO499FgZ9XoDVTFcexoiQOCSCEMdJ Pu86W4KbDtsPer2PKbnHFzM= X-Received: by 2002:a05:6871:8504:b0:192:b536:259 with SMTP id sx4-20020a056871850400b00192b5360259mr96231oab.19.1684356416433; Wed, 17 May 2023 13:46:56 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id g15-20020a9d6a0f000000b006ab1dd9eedesm9048otn.49.2023.05.17.13.46.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 13:46:56 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 17:41:11 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1 1/2] rust: sync: add `Arc::ptr_eq` Content-Language: en-US To: Alice Ryhl , Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor Cc: Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Benno Lossin , Will Deacon , Peter Zijlstra , Mark Rutland , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Wedson Almeida Filho References: <20230517200814.3157916-1-aliceryhl@google.com> From: Martin Rodriguez Reboredo In-Reply-To: <20230517200814.3157916-1-aliceryhl@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/23 17:08, Alice Ryhl wrote: > [...] > + > + /// Compare whether two [`Arc`] pointers reference the same underlying object. > + pub fn ptr_eq(this: &Self, other: &Self) -> bool { > + core::ptr::eq(this.ptr.as_ptr(), other.ptr.as_ptr()) > + } > } > > impl ForeignOwnable for Arc { > > base-commit: ac9a78681b921877518763ba0e89202254349d1b Reviewed-by: Martin Rodriguez Reboredo