diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2023-01-05 18:12:36 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2023-01-06 10:03:51 +0000 |
commit | 807b692012ae921ac388cb2ea852645ee2ce4027 (patch) | |
tree | b0078cd754eb708dd2dfe14f0f06c56bcf610418 /debug | |
parent | bbce0c75f35f55b9f5e43dd4fa01a82cc27bf020 (diff) | |
download | glibc-807b692012ae921ac388cb2ea852645ee2ce4027.tar.gz glibc-807b692012ae921ac388cb2ea852645ee2ce4027.tar.xz glibc-807b692012ae921ac388cb2ea852645ee2ce4027.zip |
cheri: malloc: Use memcpy for obstack internal copy
Internally obstack used a backward word at a time copy. This can be an aliasing violation and likely slower than memcpy on most targets. The code is a badly written memcpy with performance issues such as the h->object_base indirection cannot be hoisted out of the loop. On CHERI architecture this is needed for copying pointers correctly.
Diffstat (limited to 'debug')
0 files changed, 0 insertions, 0 deletions