[PATCH 10/16] malloc: Change calloc when tagging is disabled
DJ Delorie
dj@redhat.com
Fri Mar 5 01:06:43 GMT 2021
Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> When glibc is built with memory tagging support (USE_MTAG) but it is not
> enabled at runtime (mtag_enabled) then unconditional memset was used
> even though that can be often avoided.
>
> This is for performance when tagging is supported but not enabled.
> The extra check should have no overhead: tag_new_zero_region already
> had a runtime check which the compiler can now optimize away.
LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>
More information about the Libc-alpha
mailing list