From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by sourceware.org (Postfix) with ESMTPS id E1FD33858D37 for ; Mon, 3 Apr 2023 13:10:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1FD33858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PHkndeV3kMM1Z8hZXsemDjRbeOxVNJQTSsy3Re2ZgsU=; b=iaaEaPmb9lwSYub7eJzt/KFyE8BJWWx6IrV+FgArrtMkyHwFIE5oefq7ip1I0hp/m77xVG63ibQqm2qtOvzOzTutuEA0M82guCCD5sWfq7cwxGZDDlg0XMOZnY4EL0dOPtw0mgmvTjeAWeWpn5Le/vREgVmn3ZZxOyjg5UoA/L8= Received: from AS9PR06CA0161.eurprd06.prod.outlook.com (2603:10a6:20b:45c::11) by DB9PR08MB7493.eurprd08.prod.outlook.com (2603:10a6:10:36e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 13:10:17 +0000 Received: from AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45c:cafe::db) by AS9PR06CA0161.outlook.office365.com (2603:10a6:20b:45c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Mon, 3 Apr 2023 13:10:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT045.mail.protection.outlook.com (100.127.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.26 via Frontend Transport; Mon, 3 Apr 2023 13:10:17 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Mon, 03 Apr 2023 13:10:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5b9378797cfbd158 X-CR-MTA-TID: 64aa7808 Received: from 3d1add7298ad.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 532A4C33-4969-4A34-9E67-8C9A79D315A4.1; Mon, 03 Apr 2023 13:10:11 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3d1add7298ad.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 03 Apr 2023 13:10:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a1WIzoz7geNUSCNN34o8zfWyM9JXeT3kkU2PVwBFl8tz9scSNUs3l0ZSpOZPc+wJtlP0r+HjfEkLPg4fNEwRGuvc+s6YCLh7KGrIShspoNZtA2m92XxZcVXuzHV7SGBIdnBAK4dPbK4SIwQgBOQDCt/4XSOEGUi7UsfHPGc8nH+n/e2jIRBVmecMQexoMnG0vc5scCvfUQ1HWa24Si0Gsw98W+QR4HhfXm/SWXGGKKWmgZuumDg9DVbV3tYXSOit9hcq4VwUpppKi1hiGZShD9H8I/nkyGj5TXKk3gAAQqei8JTXCWG7fU5DO+9hUkjo42E9DsgtnckKEgjRXCoHKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PHkndeV3kMM1Z8hZXsemDjRbeOxVNJQTSsy3Re2ZgsU=; b=NYxkL0iLq0BVRGOM3KcJqu79irEzx8aJnDcjt9uJi1GfMLyphhTSXBLRMI7TwJrJiFpb6U5l3ZTQI9klBPFFxbtK/TmBO4CF1TKhctqxizVW1QX5Ovxqz/twDf+4th/pycGZU8dj6nGzcTgwbyKFPeBTIYR2PGdOtb0iARhrCX9K6owDuwV1hm5zqoUuRmPwDIZs2tHySZtikvtUOKbPM1DRVCSn8t3NyLJql8JbPIJAZ2sm+axPbutxjy/f76DOlEzlyZ8c0dhxf6SAs6w0nhz7BbZm0Pjc4kBYUVOeqXjupLAsmvRr0y8vI9hASu9fgRS/pGfrVuPqChzmBtPnrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PHkndeV3kMM1Z8hZXsemDjRbeOxVNJQTSsy3Re2ZgsU=; b=iaaEaPmb9lwSYub7eJzt/KFyE8BJWWx6IrV+FgArrtMkyHwFIE5oefq7ip1I0hp/m77xVG63ibQqm2qtOvzOzTutuEA0M82guCCD5sWfq7cwxGZDDlg0XMOZnY4EL0dOPtw0mgmvTjeAWeWpn5Le/vREgVmn3ZZxOyjg5UoA/L8= Received: from PAWPR08MB8982.eurprd08.prod.outlook.com (2603:10a6:102:33f::20) by PAVPR08MB9330.eurprd08.prod.outlook.com (2603:10a6:102:304::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 13:10:08 +0000 Received: from PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::13be:967d:6e80:432f]) by PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::13be:967d:6e80:432f%9]) with mapi id 15.20.6254.030; Mon, 3 Apr 2023 13:10:08 +0000 From: Wilco Dijkstra To: DJ Delorie , Adhemerval Zanella CC: "libc-alpha@sourceware.org" Subject: Re: [PATCH v3] malloc: Use C11 atomics on memusage Thread-Topic: [PATCH v3] malloc: Use C11 atomics on memusage Thread-Index: AQHZXaMFl73lxjd/A0uG1UOnMZGJYa8SKrIAgAdxXkE= Date: Mon, 3 Apr 2023 13:10:08 +0000 Message-ID: References: <20230323161737.2592579-1-adhemerval.zanella@linaro.org> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PAWPR08MB8982:EE_|PAVPR08MB9330:EE_|AM7EUR03FT045:EE_|DB9PR08MB7493:EE_ X-MS-Office365-Filtering-Correlation-Id: bf069b70-3b52-4c54-b9e2-08db3444c533 x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: lAdeecDpr+5n7K/de1ra0WbZ1sbjS0ItWEkZd2l8jmSR/Tm5hP3buNQTjyYMskL3ZEIl8B+jEt0aBZOfhTE2ptCWcHrTnJilhgb06olbpUEc1HeCvTxq913CJheOjMZCymnwRJ+5xDxo5ojdLG45437BvDfFwU0HJpdyGwj66pCNFWbraM4PJIGTHS4a0l2B5LaxoSlYHg8tfbuCszILVRFrINBWqWWSYSs8oiLA/44sweeEfJx+JMY18rKiXsecyDdpXK1uVLntlR3T8byo/h37hvsbE3C8JIo6gNlnTFe12KliuYfoCfzptKUfc1By/GorUPRo5fYEccnqaLunNTgmnfJSACZ51Ujek5WcvPy+AUd5j0arRGrKYo/imn1vnmHshFCs1eSexJIC0k8JOPh22OMdqdb0geABzPZSX76VniunSXtkPkrS8NyPz4nljtl8nG0YCqfMpetc4L+9mN1lCPiRMSYfoosVp8mJd5GZOpt9jwlaEiIi2VhHlt4tZnLZwLOUmc5GFbQw/vkpOu1LLMvxTY4rlCH+aWqapePrk2oztuqobH8lzGEPk25D6Hy5NqKweGht7eEOp2G5K2v1s6yPXLtLsb4We0/ybrzg7CinFHZmFOIjbpDzqjnc X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAWPR08MB8982.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(376002)(396003)(346002)(136003)(451199021)(86362001)(38070700005)(33656002)(2906002)(55016003)(7696005)(71200400001)(186003)(6506007)(26005)(9686003)(4326008)(478600001)(91956017)(66946007)(66556008)(76116006)(8676002)(66476007)(64756008)(66446008)(41300700001)(5660300002)(122000001)(38100700002)(110136005)(316002)(4744005)(52536014)(8936002);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9330 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 23ddc970-d7f8-4e84-2b9b-08db3444bfcf X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N7KVs+UjR17rBvE91fifyqTKOp04DNfLiv0iSyo5niWiG3KpEZEgDZqPKff+56JjlX9wq8dbLpIkC8aD+ZC5MrjiAUVY2S+pmCOBGKDvOztR6E+xDifZlPNarQ5fnwxIJOS195T58HolwLNVeqoCmzEM5gJttRzfipjCL0ffDtxzsoyIjvtIn5f+cetx3/4Sfr/hObAQgpoeyB2isWQY7CK98oOae+pm+0RKe2/1hfTbXj20fAZLwxNjjXw4UrxXW2xbepPAqA+vohrIeXjVH/vGmTgbmTx8MMfeLIzwK/P2Od2o7RPbKsy8BsBRESsfcCIN2b3iWXomVSSLAmscuxtYngs3YcbZVKSGrgkp8uscKxAOMOZK4rVs57yOjKY84fhErUVi2UbVOnWdye+a/5/7C3P9Fwvlj0BjL9DSMHDigR83n1c/3ZvpPQKNgg6uMC0BoejrU7BCuATiZLgZzGn2QsJ3aQTaJEMhA2f6RMIAES3o8mq+kmgK/j7RBZFkv8lM5A7aGRl33psxd9R99IGOwexunZsmA0qMT2I+s5wY6zIWUU4e2yCEwyt7Nsbkm0IHLfpjqOWAte5eQkInEfmgtV++OkavAS1/Eu9EebavDg+FLZ4NG3yOr/BR52s6WM2t3X4goMBkSXC0o+14LSDpVfMkltxZCs9knMKeQ3MqJjBNOn4+/Dws3+ogN4lL5kIOSYLMt081oORNAGwk7A== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(39860400002)(396003)(451199021)(36840700001)(46966006)(40470700004)(55016003)(40480700001)(40460700003)(8676002)(4326008)(70206006)(70586007)(36860700001)(478600001)(316002)(110136005)(8936002)(52536014)(4744005)(356005)(82740400003)(41300700001)(81166007)(5660300002)(186003)(47076005)(336012)(26005)(6506007)(9686003)(86362001)(33656002)(2906002)(82310400005)(7696005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 13:10:17.3197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf069b70-3b52-4c54-b9e2-08db3444c533 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7493 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi,=0A= =0A= >Adhemerval Zanella writes:=0A= >> -#include =0A= =0A= Just double checking, does this mean we are now happy with bypassing=0A= the internal header, all its defines/checks and target implementations,=0A= and require that all supported targets have correctly implemented C11=0A= atomics?=0A= =0A= This would make my outstanding patches on cleaning up atomics a lot=0A= easier, however I'm wondering whether this will "just work" given the=0A= intermediate state will be a mix between C11 atomics and various target=0A= specific hacks. My patches tried hard to avoid such issues by taking=0A= tiny steps in improving this and keeping everything consistent.=0A= =0A= Cheers,=0A= Wilco=