folly: fix AtomicUnorderedMap compilation on macOS
authorWez Furlong <wez@fb.com>
Wed, 27 Jul 2016 04:07:55 +0000 (21:07 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Wed, 27 Jul 2016 04:08:29 +0000 (21:08 -0700)
commit84e863f65b838e27ce94bc41b25f46f4c8bc26ac
tree10e80ce3cf90a698aeae47ed3ac7ed579fde9ecb
parent369761f0999b218383f468bfeebdf6b1a07d79ca
folly: fix AtomicUnorderedMap compilation on macOS

Summary:
MAP_POPULATE is not defined on this system.  Instead we will `madvise` the kernel
that we will need it so that it will populate the mapping.

Reviewed By: yfeldblum

Differential Revision: D3584325

fbshipit-source-id: ece52f3d55c475bcd41367f4e9744d6f41001cd5
folly/detail/AtomicUnorderedMapUtils.h