projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SimpleBarrier
[folly.git]
/
folly
/
test
/
AtomicHashArrayTest.cpp
diff --git
a/folly/test/AtomicHashArrayTest.cpp
b/folly/test/AtomicHashArrayTest.cpp
index 92be30da9ae2fcfb9dfb17e53e308a644a2c348d..b6b9e9a5ebd132e6df66974a22aae07c8d44f693 100644
(file)
--- a/
folly/test/AtomicHashArrayTest.cpp
+++ b/
folly/test/AtomicHashArrayTest.cpp
@@
-23,7
+23,7
@@
#include <folly/Hash.h>
#include <folly/Memory.h>
#include <folly/portability/SysMman.h>
#include <folly/Hash.h>
#include <folly/Memory.h>
#include <folly/portability/SysMman.h>
-#include <
gtest/gt
est.h>
+#include <
folly/portability/GT
est.h>
using namespace std;
using namespace folly;
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,
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;
}
if (p == MAP_FAILED) throw std::bad_alloc();
return (T *)p;
}