From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rhel8.vm.delorie.com (d-159-250-13-23.nh.cpe.atlanticbb.net [159.250.13.23]) by sourceware.org (Postfix) with ESMTPS id 13B30385803C for ; Fri, 5 Mar 2021 00:46:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 13B30385803C Received: from rhel8.vm.redhat.com (localhost [127.0.0.1]) by rhel8.vm.delorie.com (8.15.2/8.15.2) with ESMTPS id 1250kkwj036480 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 4 Mar 2021 19:46:47 -0500 From: DJ Delorie To: Szabolcs Nagy Cc: libc-alpha@sourceware.org, Richard.Earnshaw@arm.com Subject: Re: [PATCH 08/16] malloc: Use global flag instead of function pointer dispatch for mtag In-Reply-To: <8d9711a654bfe7a47ba743ab7e836118f8866f66.1614874816.git.szabolcs.nagy@arm.com> (message from Szabolcs Nagy on Thu, 4 Mar 2021 16:32:27 +0000) Date: Thu, 04 Mar 2021 19:46:46 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, KHOP_HELO_FCRDNS, RDNS_DYNAMIC, SPF_FAIL, SPF_HELO_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 05 Mar 2021 00:46:56 -0000 Szabolcs Nagy writes: > The definition of tag_new_usable is moved after chunk related > definitions. A couple thousand lines after, that is. Perhaps it could go at the end of the chunk related definitions, closer to the other tag functions? > This refactoring also allows using mtag_enabled checks instead of > USE_MTAG ifdefs when memory tagging support only changes code logic > when memory tagging is enabled at runtime. Are you relying on the compiler to do the work of the old #ifdefs for platforms without USE_MTAG set? I.e. are we sure that the compiled binaries will have the mtag-related code optimized out? Otherwise LGTM with the above caveats. Reviewed-by: DJ Delorie