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

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 09:25:18 PST 2018


fjricci added a comment.

I think it would be preferable to define this as a separate constant (perhaps `kSanitizerVmMemoryOsAllocOnce`, like @kubamracek suggested), which is set to `VM_MEMORY_OS_ALLOC_ONCE` if defined, and some other value (that 73 perhaps?) otherwise. Makes it clear that the constant used by the code isn't necessarily the same as the one set by the system.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D39888





More information about the llvm-commits mailing list