malloc: Use mtag_enabled instead of USE_MTAG
commitd32624802d0b2105c95f699dd6a887b54cebf197
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 17 Feb 2021 10:15:18 +0000 (17 10:15 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 26 Mar 2021 11:03:06 +0000 (26 11:03 +0000)
tree97b93d1bbc80fad133a307471b661b4ae659b97f
parent63a20eb03c0c363cf5271eb3a2fa0bb7552c01be
malloc: Use mtag_enabled instead of USE_MTAG

Use the runtime check where possible: it should not cause slow down in
the !USE_MTAG case since then mtag_enabled is constant false, but it
allows compiling the tagging logic so it's less likely to break or
diverge when developers only test the !USE_MTAG case.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/hooks.c
malloc/malloc.c