[PATCH v2 2/3] malloc: Remove code conditional on USE_MTAG

Yury Khrustalev yury.khrustalev@arm.com
Thu May 21 08:42:34 GMT 2026


On Wed, May 20, 2026 at 05:28:08PM -0300, Adhemerval Zanella Netto wrote:
> 
> 
> On 20/05/26 10:27, Yury Khrustalev wrote:
> > Further malloc refactoring related to memory tagging.
> > 
> > Remove code that was only compiled when macro USE_MTAG was defined
> > except for the AArch64-specific assembly MTE code that is going to
> > be compiled unconditionally from now on.
> > 
> > As a result, we change 'mtag_mmap_flags' to 'extra_mmap_prot' that
> > is now always defined. Change of the name due to this being used
> > as part of PROT options in mmap syscalls rather than part of flags.
> > 
> > Remove 'mtag_enabled' that would become compile-time false. Also
> > remove any code that would never be compiled when 'mtag_enabled'
> > is false.
> 
> LGTM, thanks. I think maybe it would be better to just squash all
> the patches in only one.

OK, this makes sense, I'll do that in v3 (I need to send it anyway to
fix the issue of the 3rd patch with git am.

> Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

Thanks,
Yury



More information about the Libc-alpha mailing list