Add a guard page to a limited number of stacks
Summary:
GuardedPageAllocator now maintains a process-wide cache
of preallocated stacks with guard pages. We can't create too many of these, since
each stack has the overhead of two memory mappings. Once we run out of preallocated stacks
we simply fallback on the default allocator.
Test Plan:
unit tests
perflab
TAO unit tests
Reviewed By: pavlo@fb.com
Subscribers: zhuohuang, trunkagent, sameen, folly-diffs@, yfeldblum, chalfant
FB internal diff:
D2129510
Tasks:
7319041
Signature: t1:
2129510:
1433542031:
324942af3c9813344c1b331ee2c9b66c4bfa3f03