[PATCH] D56757: [hwasan] Madvise away unused shadow.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 18 16:44:06 PST 2019
pcc added inline comments.
================
Comment at: compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c:35
+ sync_rss();
+ int statm_fd = open(statm_path, O_RDONLY);
+ assert(statm_fd >= 0);
----------------
Can't this just be `open("/proc/self/statm", O_RDONLY);`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56757/new/
https://reviews.llvm.org/D56757
More information about the llvm-commits
mailing list