From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 5BEC53858420 for ; Tue, 31 Aug 2021 18:16:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5BEC53858420 Received: by mail-lj1-x236.google.com with SMTP id s3so195139ljp.11 for ; Tue, 31 Aug 2021 11:16:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9q/OWja7U8X9Q+aBfrdCy5WQFSjR+LgoPKwHRMCc6xs=; b=eHov0B5KyD+raqgJF73tz8ewCLhSmRWjvrmFudRnnfuPxo0y2iTl896FjRFtGNDtVo tQeC0MDB4fIdLwJ2I1doc/N/KJshyfE0fQ357ayBEWYmTD0KBEaec4yav/nfjdGbyma4 g3UCKgp2hLOfejKdKrR6Fkt7DVTTcLgOYx2y4LEWgaX1vnQHx0D1O8oVA0bpb4G5Fohe 5z8efejmiP5HzhMIWqmWHxLTCvyLD9Up924zgMuXbNfPRYVYZvj3D3ZBRIcmL8wZxzxS 2dZTBT6ways2yYfLYuEwAQZW7ygPDv0HxdSNtOYUI/6oRPCyZ90Y8Y9ie9xKVcOQUbQY vr1g== X-Gm-Message-State: AOAM533RJyyPfbqETE9MpAGeNi6/Af1kcg2eABsf1f9gSuvK/M+ZbY7g OSYpfIx1mrUOcBXTEaeBguM1g63zqawE06BFGk0= X-Google-Smtp-Source: ABdhPJxsBom+s7i6N2pioLZQnCjRDTmepvW3jPhmRB1dHTZRcAIjlDGc42tXEQmjIvT10vApGWr2yAxDzoETfrYoEiQ= X-Received: by 2002:a2e:8403:: with SMTP id z3mr26969971ljg.298.1630433797020; Tue, 31 Aug 2021 11:16:37 -0700 (PDT) MIME-Version: 1.0 References: <20210830152636.1334678-1-bugaevc@gmail.com> <87r1ebndtp.fsf@oldenburg.str.redhat.com> In-Reply-To: <87r1ebndtp.fsf@oldenburg.str.redhat.com> From: Sergey Bugaev Date: Tue, 31 Aug 2021 21:16:25 +0300 Message-ID: Subject: Re: [RFC PATCH htl v2 0/4] Rewrite THREAD_GSCOPE To: Florian Weimer Cc: libc-alpha@sourceware.org, bug-hurd , Samuel Thibault Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 18:16:39 -0000 Thanks for looking into it! On Mon, Aug 30, 2021 at 6:37 PM Florian Weimer wrote: > You could kick the can down the road by switching to PTHREAD_IN_LIBC. > In some cases, that might actually be correct replacement. Ack; that should be easy to do. Nevertheless, please do look at patch 4/4 and say if you would prefer that approach. Do you happen to know if there's a testcase that exercises THREAD_GSCOPE_WAIT ()? Even simple programs evidently use THREAD_GSCOPE_SET_FLAG () / THREAD_GSCOPE_RESET_FLAG (), but I so far haven't been able to construct a program that would trigger the WAIT. I've tried dlopening and dlclosing libraries concurrently from several threads; I will try dlopening hundreds of libraries next (to hopefully trigger a reallocation of some table), but it would be handy if there was an official ready-to-use testcase. Sergey