Commit 16d1d55c authored by Chad Austin's avatar Chad Austin Committed by Facebook GitHub Bot

enable FOLLY_USE_SYMBOLIZER on all non-Windows builds

Summary: The only thing FOLLY_USE_SYMBOLIZER guards now is whether to install signal handlers, and we can do that on any unix.

Reviewed By: yfeldblum, luciang

Differential Revision: D23881199

fbshipit-source-id: 45631b59fe5df9656a227b68683f23d4ff65e223
parent 9773cb4a
...@@ -523,7 +523,13 @@ void installFatalSignalHandler(std::bitset<64> signals) { ...@@ -523,7 +523,13 @@ void installFatalSignalHandler(std::bitset<64> signals) {
// stack overflow. Replace it with the unsafe self-allocate printer. // stack overflow. Replace it with the unsafe self-allocate printer.
bool useUnsafePrinter = kIsLinux && isSmallSigAltStackEnabled(); bool useUnsafePrinter = kIsLinux && isSmallSigAltStackEnabled();
if (useUnsafePrinter) { if (useUnsafePrinter) {
#if FOLLY_HAVE_SWAPCONTEXT
gStackTracePrinter = new UnsafeSelfAllocateStackTracePrinter(); gStackTracePrinter = new UnsafeSelfAllocateStackTracePrinter();
#else
// This environment does not support swapcontext, so always use
// SafeStackTracePrinter.
gStackTracePrinter = new SafeStackTracePrinter();
#endif // FOLLY_HAVE_SWAPCONTEXT
} else { } else {
gStackTracePrinter = new SafeStackTracePrinter(); gStackTracePrinter = new SafeStackTracePrinter();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment