From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123700 invoked by alias); 12 Jul 2018 20:39:02 -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 123287 invoked by uid 89); 12 Jul 2018 20:39:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Subject: Re: [PATCH v8 2/8] nptl: Add C11 threads mtx_* functions To: Adhemerval Zanella , libc-alpha@sourceware.org References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-3-git-send-email-adhemerval.zanella@linaro.org> <44460c52-bff8-d7a7-4d7e-f017ad268c21@redhat.com> <4be08a33-8957-0494-857b-5c26869778b1@linaro.org> <148abea8-72ba-e474-c0ac-251a546717cf@linaro.org> From: Florian Weimer Message-ID: <94903f9e-87b3-6170-3efe-ee2ce04d336d@redhat.com> Date: Thu, 12 Jul 2018 20:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <148abea8-72ba-e474-c0ac-251a546717cf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-07/txt/msg00351.txt.bz2 On 07/12/2018 10:30 PM, Adhemerval Zanella wrote: >> I'm concerned about this because in the future, we might compile the implementations to remove checks that are not needed for the C11 implementations. > > Why kind of scenario do you have in mind? Maybe use a more streamlined > internal implementation for C11 threads? Yes, the polymorphic mutex types must have *some* overhead (think of speculatively executing the wrong atomics), and less polymorphism should improve performance. Thanks, Florian