Fix some copyright lines in folly/experimental/symbolizer/
[folly.git] / folly / experimental / symbolizer / SignalHandler.h
index 7bb696431b29fc4f968bfd3977895e3afe387998..aa8517a5c2f20464b66a1c1442903bb74d2dd571 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -18,7 +18,8 @@
 
 #include <functional>
 
-namespace folly { namespace symbolizer {
+namespace folly {
+namespace symbolizer {
 
 /**
  * Install handler for fatal signals. The list of signals being handled is in
@@ -29,14 +30,6 @@ 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).
@@ -47,7 +40,7 @@ constexpr size_t kFatalSignalHandlerCacheSize = 10000;
  * All these fatal callback must be added before calling
  * installFatalSignalCallbacks(), below.
  */
-typedef void (*SignalCallback)(void);
+typedef void (*SignalCallback)();
 void addFatalSignalCallback(SignalCallback callback);
 
 /**
@@ -55,6 +48,5 @@ void addFatalSignalCallback(SignalCallback callback);
  * callbacks in the order in which they were added.
  */
 void installFatalSignalCallbacks();
-
-
-}}  // namespaces
+} // namespace symbolizer
+} // namespace folly