Register custom stack for signal handlers
authorAndrii Grynenko <andrii@fb.com>
Thu, 12 May 2016 23:20:40 +0000 (16:20 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Thu, 12 May 2016 23:23:38 +0000 (16:23 -0700)
commitaf8129a20218967099a90fc419762f3770574377
tree37ee75847003eba26dfcc76a5bdf0bf8f2a55b06
parent0a0e47de0d3ca55d0340b3b0e1211a5aa184a04c
Register custom stack for signal handlers

Summary: This updates FiberManager to automatically register custom stack for signal handlers. This ensures signal handlers will work correctly not only in case of stack overflow, but also if fiber stack size is just not enough for them.

Reviewed By: yfeldblum

Differential Revision: D3289912

fbshipit-source-id: 44959b727f70e1f1748d837b1a06c7414433e5ec
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/FiberManager.cpp
folly/experimental/fibers/FiberManager.h
folly/experimental/fibers/test/StackOverflow.cpp [new file with mode: 0644]