disable stack madvise optimization on non-Linux platforms
authorNathan Bronson <ngbronson@fb.com>
Thu, 4 Jun 2015 23:15:43 +0000 (16:15 -0700)
committerNoam Lerner <noamler@fb.com>
Fri, 5 Jun 2015 02:33:52 +0000 (19:33 -0700)
commit2df2c5506a568220d3e4583170c64a84c11ed1b2
tree70d478b9afd5447794224c89255ba6c584225826
parent59badf857a28d6006edb483c12469ac37e54ef4a
disable stack madvise optimization on non-Linux platforms

Summary:
This diff strengthens the preconditions for attempting to use
optimize by madvising away idle stacks, because it seemed to be causing
problems on OS X (https://github.com/facebook/proxygen/issues/3).

Test Plan: unit tests

Reviewed By: ldbrandy@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D2129100

Signature: t1:2129100:1433458268:0b6b3696dde6c2bd13b89bc7ec58f0b1898be458
folly/detail/MemoryIdler.cpp