Commit b9f837ee authored by Maged Michael's avatar Maged Michael Committed by Facebook Github Bot

hazptr: Make using a thread pool executor for default domain asynchronous reclamation the default

Summary: Add a call in folly init to folly::start_hazptr_thread_pool_executor() to make the default hazptr domain use a CPUThreadPoolExecutor by default.

Reviewed By: davidtgoldblatt

Differential Revision: D19107125

fbshipit-source-id: 1cebe0864de14b54349f723061c4c2b5905b105b
parent 8c7f9c00
......@@ -21,6 +21,7 @@
#include <folly/Singleton.h>
#include <folly/logging/Init.h>
#include <folly/portability/Config.h>
#include <folly/synchronization/HazptrThreadPoolExecutor.h>
#if FOLLY_USE_SYMBOLIZER
#include <folly/experimental/symbolizer/SignalHandler.h> // @manual
......@@ -57,6 +58,9 @@ void init(int* argc, char*** argv, bool removeFlags) {
// Actually install the callbacks into the handler.
folly::symbolizer::installFatalSignalCallbacks();
#endif
// Set the default hazard pointer domain to use a thread pool executor
// for asynchronous reclamation
folly::start_hazptr_thread_pool_executor();
}
Init::Init(int* argc, char*** argv, bool removeFlags) {
......
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