[PATCH] D49603: On Darwin switch from the `VM_MEMORY_ANALYSIS_TOOL` VM tag to `VM_MEMORY_SANITIZER`
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 10:12:48 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT337579: On Darwin switch from the `VM_MEMORY_ANALYSIS_TOOL` VM tag to (authored by delcypher, committed by ).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D49603
Files:
lib/sanitizer_common/sanitizer_mac.cc
Index: lib/sanitizer_common/sanitizer_mac.cc
===================================================================
--- lib/sanitizer_common/sanitizer_mac.cc
+++ lib/sanitizer_common/sanitizer_mac.cc
@@ -102,9 +102,15 @@
extern "C" int __munmap(void *, size_t) SANITIZER_WEAK_ATTRIBUTE;
// ---------------------- sanitizer_libc.h
+
+// From <mach/vm_statistics.h>, but not on older OSs.
+#ifndef VM_MEMORY_SANITIZER
+#define VM_MEMORY_SANITIZER 99
+#endif
+
uptr internal_mmap(void *addr, size_t length, int prot, int flags,
int fd, u64 offset) {
- if (fd == -1) fd = VM_MAKE_TAG(VM_MEMORY_ANALYSIS_TOOL);
+ if (fd == -1) fd = VM_MAKE_TAG(VM_MEMORY_SANITIZER);
if (&__mmap) return (uptr)__mmap(addr, length, prot, flags, fd, offset);
return (uptr)mmap(addr, length, prot, flags, fd, offset);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49603.156528.patch
Type: text/x-patch
Size: 825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180720/45eb4e38/attachment.bin>
More information about the llvm-commits
mailing list