No MAP_POPULATE on Mac OS X
Change-Id: I6a0b8bbeec94fe19b609542550f9cce783daef20
This commit is contained in:
parent
3004221e47
commit
e93b4d20d8
@ -59,7 +59,7 @@ UnusedMethodsRemove::UnusedMethodsRemove(InstantiationData const & data): Rewrit
|
||||
mmapFD = open(sInputFile, O_RDONLY, 0);
|
||||
assert(mmapFD != -1);
|
||||
//Execute mmap
|
||||
mmappedData = static_cast<char*>(mmap(NULL, mmapFilesize, PROT_READ, MAP_PRIVATE | MAP_POPULATE, mmapFD, 0));
|
||||
mmappedData = static_cast<char*>(mmap(NULL, mmapFilesize, PROT_READ, MAP_PRIVATE, mmapFD, 0));
|
||||
assert(mmappedData != NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user