]> 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, 19 Mar 2021 11:46:20 +0000 (11:46 +0000)
commit35218b88e7b231309b144b07f43a4077cfd971cd
tree23671f5a987113c60da8ffe503ed06fd96901a9f
parentd4f0f405ca8553dfd5a8e6b1a5debff66e9d092d
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 0.045531 seconds and 5 git commands to generate.