From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18212 invoked by alias); 26 Oct 2016 04:04:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 17788 invoked by uid 89); 26 Oct 2016 04:03:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=upcoming X-HELO: mail-qk0-f176.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=sXtt1yIHOW8aqs1nRG38ljxfnhxCKA8YpqKphOu4I0E=; b=hsQ8HtIgGdPcWi9BF1JlY3ek/GA5AFmI463VXPapAjAv5rEUS5LCFJoS/s7Fb3VZax lbbKKNRHsaVR3yKmMjR6uoaKN/VsqvTjvblho9D+JTa48Z7+6tReQZGo2PdvPfrfV36J lL504QvuDpX7GjRuRkIhcdYU3RFPMEGKtmJXr4DAm2e8a4Y88Xg8fRRbEwK5zNJjSDpx NNguotnTuUf5bREA5EqUSj6bFTe7UkHAgmpbwFN4xNzFX+qRJbMFHKL/HDYzqkoak+uE cv2MWP1+IZcydz4gltM7h6U936hy0SGUcDiIat4rkeu/tEWWmaYFL8F459VYgG/amJNL nz8A== X-Gm-Message-State: ABUngvcIlh4y3cci3V0IOjo9e5xQrjqFzXklqqBYovLGuFt5aQ5LSqUWWiiGDlZ8SEI3MbON X-Received: by 10.55.5.145 with SMTP id 139mr898475qkf.77.1477454624372; Tue, 25 Oct 2016 21:03:44 -0700 (PDT) Subject: Re: [PATCH] Fix x86 atomic_fetch_xor_release. To: Torvald Riegel References: <1eeffe37-c4ec-fef7-537b-9ad17129b6c0@redhat.com> <1476788563.14800.38.camel@localhost.localdomain> Cc: GNU C Library From: Carlos O'Donell Message-ID: <0518fd92-831d-0424-3ad6-79ced2b6b287@redhat.com> Date: Wed, 26 Oct 2016 04:04:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1476788563.14800.38.camel@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-10/txt/msg00442.txt.bz2 On 10/18/2016 07:02 AM, Torvald Riegel wrote: > On Mon, 2016-10-17 at 23:18 -0400, Carlos O'Donell wrote: >> Torvald, >> >> No code uses atomic_fetch_xor_release except for the upcoming conditional >> variable rewrite. Therefore there is no user visible bug here. >> >> The use of atomic_compare_and_exchange_bool_rel is removed (since it doesn't >> exist anymore), and is replaced by atomic_compare_exchange_weak_release. >> >> We use weak_release because it provides better performance in the loop >> (the weak semantic) and because the xor is release MO (the release semantic). >> >> We don't reload expected in the loop because atomic_compare_and_exchange_weak_release >> does this for us as part of the CAS failure. >> >> It is otherwise a fairly plain conversion that fixes building the new condvar >> for 32-bit x86. >> >> I have pushed the new condvar into Fedora Rawhide for testing. >> >> OK to checkin? > > OK. > Checked in. Verified it fixes everything with the other dependent patches applied. -- Cheers, Carlos.