Fix SimpleBarrier
[folly.git] / folly / test / AtomicHashArrayTest.cpp
index 92be30da9ae2fcfb9dfb17e53e308a644a2c348d..b6b9e9a5ebd132e6df66974a22aae07c8d44f693 100644 (file)
@@ -23,7 +23,7 @@
 #include <folly/Hash.h>
 #include <folly/Memory.h>
 #include <folly/portability/SysMman.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
@@ -73,7 +73,7 @@ class MmapAllocator {
 
   T *allocate(size_t n) {
     void *p = mmap(nullptr, n * sizeof(T), PROT_READ | PROT_WRITE,
-        MAP_SHARED | MAP_ANONYMOUS, -1, 0);
+        MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
     if (p == MAP_FAILED) throw std::bad_alloc();
     return (T *)p;
   }