[compiler-rt] r254601 - [tsan] Use MAP_ANON instead of MAP_ANONYMOUS

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 02:46:31 PST 2015


Author: kuba.brecka
Date: Thu Dec  3 04:46:26 2015
New Revision: 254601

URL: http://llvm.org/viewvc/llvm-project?rev=254601&view=rev
Log:
[tsan] Use MAP_ANON instead of MAP_ANONYMOUS

In mmap_large.cc, let's use MAP_ANON instead of MAP_ANONYMOUS, because MAP_ANONYMOUS is only available on OS X 10.11 and later.

Differential Revision: http://reviews.llvm.org/D15180


Modified:
    compiler-rt/trunk/test/tsan/mmap_large.cc

Modified: compiler-rt/trunk/test/tsan/mmap_large.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/mmap_large.cc?rev=254601&r1=254600&r2=254601&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/mmap_large.cc (original)
+++ compiler-rt/trunk/test/tsan/mmap_large.cc Thu Dec  3 04:46:26 2015
@@ -22,7 +22,7 @@ int main() {
       reinterpret_cast<void*>(kLocation),
       1ULL << kLog2Size,
       PROT_READ|PROT_WRITE,
-      MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE,
+      MAP_PRIVATE|MAP_ANON|MAP_NORESERVE,
       -1, 0);
   fprintf(stderr, "DONE %p %d\n", p, errno);
   return p == MAP_FAILED;




More information about the llvm-commits mailing list