[all-commits] [llvm/llvm-project] 99db65: [compiler-rt] Move __sanitizer_mallinfo to separat...
PiJoules via All-commits
all-commits at lists.llvm.org
Wed Mar 29 10:09:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 99db65630c8595d248467bf3311596034c168556
https://github.com/llvm/llvm-project/commit/99db65630c8595d248467bf3311596034c168556
Author: Leonard Chan <leonardchan at google.com>
Date: 2023-03-29 (Wed, 29 Mar 2023)
Changed paths:
A compiler-rt/lib/sanitizer_common/sanitizer_mallinfo.h
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Log Message:
-----------
[compiler-rt] Move __sanitizer_mallinfo to separate header
mallinfo is platform-specific and not specified by either posix or the C
standard, but the hwasan interface unconditionally exposes
__sanitizer_mallinfo which returns a struct __sanitizer_struct_mallinfo
which is defined in sanitizer_platform_limits_posix.h, so this should
also be available for fuchsia to provide __sanitizer_mallinfo. Fuchsia
doesn't need the rest of what's in sanitizer_platform_limits_posix.h so
we can just move it to its own header.
Exposing this and not forcing it to hide behind
SANITIZER_INTERCEPT_MALLOPT_AND_MALLINFO fixes the test failures found
after landing D145718.
Differential Revision: https://reviews.llvm.org/D147092
More information about the All-commits
mailing list