Don't attempt to mmap an anonymous shared piece of memory
authorChristopher Dykes <cdykes@fb.com>
Thu, 4 Aug 2016 23:00:55 +0000 (16:00 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Thu, 4 Aug 2016 23:08:32 +0000 (16:08 -0700)
commitb837180a88e62576ab8cd4b85ee67f91771d945f
tree849acf6b7e25ec1cecd1071c6164be2dcb36f6fc
parent114e32af8fd5d8e04683df4073d73e0652f09fff
Don't attempt to mmap an anonymous shared piece of memory

Summary: The portability implementation of `mmap` for Windows doesn't currently support anonymous shared allocations, as they are non-trivial to manage, and the places this is being used doesn't actually need the memory to be allocated as shared, so allocate it as private instead.

Reviewed By: yfeldblum

Differential Revision: D3671495

fbshipit-source-id: e74d4fd925363fef16c1bf8445da1ff32bf8266d
folly/test/AtomicHashArrayTest.cpp