folly: symbolizer: increase default signal-handler symbolizer elf file cache size...
[folly.git] / folly / experimental / symbolizer / SignalHandler.h
index 726c8a81e707bf10c1dc156485e5252ccad501cf..7bb696431b29fc4f968bfd3977895e3afe387998 100644 (file)
@@ -29,6 +29,14 @@ namespace folly { namespace symbolizer {
  */
 void installFatalSignalHandler();
 
+/**
+ * NOTE: The signal handler cache has a fixed size. ELF files for the
+ * binary and DSOs are added to the cache but never removed.
+ *
+ * Addresses from ELF files not in the cache will (silently) NOT be symbolized.
+ */
+constexpr size_t kFatalSignalHandlerCacheSize = 10000;
+
 /**
  * Add a callback to be run when receiving a fatal signal. They will also
  * be called by LOG(FATAL) and abort() (as those raise SIGABRT internally).