/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <functional>
-namespace folly { namespace symbolizer {
+namespace folly {
+namespace symbolizer {
/**
* Install handler for fatal signals. The list of signals being handled is in
*/
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).
* All these fatal callback must be added before calling
* installFatalSignalCallbacks(), below.
*/
-typedef void (*SignalCallback)(void);
+typedef void (*SignalCallback)();
void addFatalSignalCallback(SignalCallback callback);
/**
* callbacks in the order in which they were added.
*/
void installFatalSignalCallbacks();
-
-
-}} // namespaces
+} // namespace symbolizer
+} // namespace folly