diff options
author | Guillaume Chelfi <chelfi@google.com> | 2023-02-14 18:44:37 +0000 |
---|---|---|
committer | Chia-hung Duan <chiahungduan@google.com> | 2023-02-14 18:44:38 +0000 |
commit | 4e3dac6f0a4c419ee0cd575407e95f3833a01a2e (patch) | |
tree | 479c4f400297c2e9e7c839c7e6609dbef11c6375 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 6c7894a8e65289d5e3a655afc1747a06ed8553e0 (diff) | |
download | llvm-4e3dac6f0a4c419ee0cd575407e95f3833a01a2e.zip llvm-4e3dac6f0a4c419ee0cd575407e95f3833a01a2e.tar.gz llvm-4e3dac6f0a4c419ee0cd575407e95f3833a01a2e.tar.bz2 |
[scudo] Call __scudo_deallocate_hook on reallocations.
Scudo is expected to call __scudo_allocate_hook on allocations, and
__scudo_deallocate_hook on deallocations, but it's behavior is not
clear on reallocations. Currently, non-trivial reallocations call
__scudo_allocate_hook but never __scudo_deallocate_hook. We should
prefer either calling both, none, or a dedicated
hook (__scudo_reallocate_hook, for instance).
This patch implements the former, and adds a unit test to enforce
those expectations.
Reviewed By: Chia-hungDuan
Differential Revision: https://reviews.llvm.org/D141407
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions