[PATCH] D39888: [Sanitizers, LSan, Darwin] Provide fallback definition of VM_MEMORY_OS_ALLOC_ONCE

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 04:13:55 PST 2017


ro updated this revision to Diff 127331.
ro added a comment.

This version just provides a fallback definition of VM_MEMORY_OS_ALLOC_ONCE.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D39888

Files:
  lib/lsan/lsan_common_mac.cc


Index: lib/lsan/lsan_common_mac.cc
===================================================================
--- lib/lsan/lsan_common_mac.cc
+++ lib/lsan/lsan_common_mac.cc
@@ -24,6 +24,11 @@
 
 #include <mach/mach.h>
 
+// Only introduced in Mac OS X 10.9.
+#ifndef VM_MEMORY_OS_ALLOC_ONCE
+#define VM_MEMORY_OS_ALLOC_ONCE 73
+#endif
+
 namespace __lsan {
 
 typedef struct {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39888.127331.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171218/dceb2eef/attachment.bin>


More information about the llvm-commits mailing list