folly: symbolizer: increase default signal-handler symbolizer elf file cache size...
[folly.git] / folly / experimental / symbolizer / SignalHandler.cpp
index 164391c02621a79c8eef3cbe5aa7c3753018d26d..5319b11a0e39df9dde41da1b921bf8d741c83920 100644 (file)
@@ -124,13 +124,11 @@ void callPreviousSignalHandler(int signum) {
   raise(signum);
 }
 
-constexpr size_t kDefaultCapacity = 500;
-
 // Note: not thread-safe, but that's okay, as we only let one thread
 // in our signal handler at a time.
 //
 // Leak it so we don't have to worry about destruction order
-auto gSignalSafeElfCache = new SignalSafeElfCache(kDefaultCapacity);
+auto gSignalSafeElfCache = new SignalSafeElfCache(kFatalSignalHandlerCacheSize);
 
 // Buffered writer (using a fixed-size buffer). We try to write only once
 // to prevent interleaving with messages written from other threads.