From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46781 invoked by alias); 5 Jan 2019 16:36:25 -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 46764 invoked by uid 89); 5 Jan 2019 16:36:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=U*carlos, sk:carlos, sk:carlos@, customer X-HELO: mail-oi1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vKD377OFg6qZH4mO4KLNaQONnLuFlsTCtwOtA53KfFE=; b=CFytlgLAk/FTSDL5Lf6JP6MRkO1EXDFZ+JB5gy+bXhorxc9hqhWuxy3uYgQavTr1Fu yeTqW8wJwBFn56Usj7npGRjpf7BOcm6ZLEG7L93M+/dmw1jD1pSSFdjuvd/Woh5SO90v +m9X2hLYbc5/C5wg6rmGyGjzN/tNtHcGjPm2MNwGJ+YbhnfbDptiTIbdrteg1lqi9+dM eiYh7g5QrpIWcCd4OtYqPyaG9RdVwL2/mfMVSx+uNa5+zOxy7inxbgEFd7WbCys0lKUM wlYWTzDLeOfxjmzM2XgrFoxVlZgOP1uqAwikwrfyTnKPlRR+oMe2l7/6JtC5TWViIMyg f0Kg== MIME-Version: 1.0 References: <20181226025019.38752-1-ling.ma@MacBook-Pro-8.local> <7D8A82D6-6F0A-4860-856A-EB0C8CD13E9C@antfin.com> <0a474516-b8c8-48cf-aeea-e57c77b78cbd.ling.ml@antfin.com> <8c67f319-31bf-818b-4a89-66d25328026e@arm.com> In-Reply-To: From: "H.J. Lu" Date: Sat, 05 Jan 2019 16:36:00 -0000 Message-ID: Subject: Re: [PATCH] NUMA spinlock [BZ #23962] To: "Carlos O'Donell" Cc: Szabolcs Nagy , libc-alpha Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-01/txt/msg00141.txt.bz2 On Sat, Jan 5, 2019 at 4:34 AM Carlos O'Donell wrote: > > On 1/3/19 2:58 PM, H.J. Lu wrote: > > +libpthread { > > + GLIBC_2.29 { > > + numa_spinlock_alloc; > > + numa_spinlock_free; > > + numa_spinlock_init; > > + numa_spinlock_apply; > > + } > > +} > > Why are we adding these non-standard interfaces to glibc? > > The API implementation doesn't rely on any special glibc internals. > > It could be implemented as a distinct library, allowed to evolve quickly > in response to customer need, and eventually integrated into glibc if the > API proves stable. A similar model has been setup by Boost and C++ just to > draw some parallels. > > I'm not happy to see new APIs like this go directly into glibc without > much more discussion about *why* they have to be in glibc initially. > > Just to be clear I have a sustained objection to this new set of APIs > being added to glibc until I can be convinced that they have to go in > glibc. > Should glibc have scalable spinlock, in libc.so or a separate shared object? Or should we tell people that if they want scalable spinlock, they look elsewhere? -- H.J.