From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id 280613858D1E for ; Sun, 12 Feb 2023 15:52:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 280613858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102c.google.com with SMTP id r9-20020a17090a2e8900b00233ba727724so3898427pjd.1 for ; Sun, 12 Feb 2023 07:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=j9Q9oTwyPIWfMbKGfHP4ql1i5uxKI0vJ4nZhR03+DbU=; b=DEzlphyO5Yi0mC/EiUYfecfqSBhw2vr1gfFxuz1l17VQ0XASUdR5JtqT6KCDVdlLAg PjuTh4liz1YsT5uaOz2bwgDCe5DFa9n4LMza9bNWMdiq53zJg/gdM+XaGAV5RjXbYwpd OosbV1vsKxG0c4HnygBEJygbulvUYD+9mdG9kNzhB9sW2paYkX1eJtDSaULE9J89JYTh VUBsX21XtLDkzObMmxfPJ43P9h0T+GH5JR/kejzwvFJJVQ4PnLAlcWO+PTgSFyk0mUkC AoVwj7fIY/M5lL+FhjyBDgHxpPE6tezzq4TaGIJy6rKTVt/Ullx9OcxUNz1kmJn5WYLw ap3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j9Q9oTwyPIWfMbKGfHP4ql1i5uxKI0vJ4nZhR03+DbU=; b=vug6WFKLgf2CMampg0viKKGyzf90EkmHiVJWycG+GlxJ8K0j9Row7qyvh0rd97GA0b ayaeU2jV3Mx4ZJmvzIrl1V4g17aOCjOxVjUAivEjPKafkIoyHEWT28JfKy5RK/+Nmkhh DWDhU0hirf01+aPLGgMBpKRghW4dxIiiubXKGifbGj5rl8FTDkh5EJsV3Sv1f19jZ467 l5UmaskbjVuMLNJbPP63FyJPX3Tp7TJiU4tM8Ij3Dh2k50dDMeinvsmNGCnEztDRBnY8 LCujz1fH+7pvHvHazBEMuKzQFHtRrsFeU+G7IJzqnGvzZU5LPwUoq9RKHPAmvznJljTw RJ0A== X-Gm-Message-State: AO0yUKVZYlExG2Unuz3SCAt/iWkZt/4k5B/kRE7YfKNiFAojsUKf8GhI PIjAhlNnFeHzCGDeHoR1aPqUR8kbWj8NXxEp6hE= X-Google-Smtp-Source: AK7set9oiOJK2I8Ur7oQzEDo9Q9+2nc76tFioGGLxst7Fhnc5d//n8Us/iMVCiSuYmunc9Rb/Z15y9XUk5+aIwcOFLo= X-Received: by 2002:a17:90a:474d:b0:233:ac84:ed33 with SMTP id y13-20020a17090a474d00b00233ac84ed33mr1648968pjg.122.1676217168894; Sun, 12 Feb 2023 07:52:48 -0800 (PST) MIME-Version: 1.0 References: <20230212111044.610942-1-bugaevc@gmail.com> <20230212111044.610942-13-bugaevc@gmail.com> <20230212151857.c74uw45l2cssu5cl@begin> In-Reply-To: <20230212151857.c74uw45l2cssu5cl@begin> From: Sergey Bugaev Date: Sun, 12 Feb 2023 18:52:37 +0300 Message-ID: Subject: Re: [RFC PATCH glibc 12/12] C11 thrd: Downgrade the default alignment of mtx_t To: Samuel Thibault Cc: bug-hurd@gnu.org, libc-alpha@sourceware.org, =?UTF-8?B?RmzDoXZpbyBDcnV6?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sun, Feb 12, 2023 at 6:18 PM Samuel Thibault wrote: > I'd say rather make pthread_mutex_t aligned on long int, so we can > possibly in the future put some pointers in it without breaking the ABI. I honestly have 0 idea how it is not 8-aligned right now (nor how its size is 32 and not like 56), given that this is its definition... no, strike that, I see that there are *two* versions of struct___pthread_mutex.h, one in sysdeps/mach/hurd/htl/bits and the other one in sysdeps/htl/bits/types, and the former one wins. The latter one seems unused then, its only point was to confuse the hell out of me. Sergey