]> sourceware.org Git - glibc.git/commit
malloc: Only support zeroing and not arbitrary memset with mtag
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 29 Jan 2021 17:07:28 +0000 (17:07 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 26 Mar 2021 11:03:06 +0000 (11:03 +0000)
commitc076a0bc698c537f72c33bad2925f4e3da59d23c
tree188e36bfaa2c51ca50df2f1ef882a8fd57a61780
parent42bac88a211a7fac9dd1bfe7d1e45e59ac50c24f
malloc: Only support zeroing and not arbitrary memset with mtag

The memset api is suboptimal and does not provide much benefit. Memory
tagging only needs a zeroing memset (and only for memory that's sized
and aligned to multiples of the tag granule), so change the internal
api and the target hooks accordingly.  This is to simplify the
implementation of the target hook.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c
sysdeps/aarch64/Makefile
sysdeps/aarch64/__mtag_tag_zero_region.S [moved from sysdeps/aarch64/__mtag_memset_tag.S with 82% similarity]
sysdeps/aarch64/libc-mtag.h
sysdeps/generic/libc-mtag.h
This page took 1.095701 seconds and 5 git commands to generate.