Commit 78b48f15 authored by Philip Pronin's avatar Philip Pronin Committed by Facebook Github Bot 2

don't destory defaultElfCache in exit handlers

Summary:
As it might be used during global destruction (for example, to
symbolize unhandled exception happened at that time).

Reviewed By: luciang, ot

Differential Revision: D3238303

fb-gh-sync-id: 39d8a6f99d95e700586349436e961f3624c95718
fbshipit-source-id: 39d8a6f99d95e700586349436e961f3624c95718
parent f73c7249
...@@ -171,8 +171,8 @@ bool parseProcMapsLine(StringPiece line, ...@@ -171,8 +171,8 @@ bool parseProcMapsLine(StringPiece line,
ElfCache* defaultElfCache() { ElfCache* defaultElfCache() {
static constexpr size_t defaultCapacity = 500; static constexpr size_t defaultCapacity = 500;
static ElfCache cache(defaultCapacity); static auto cache = new ElfCache(defaultCapacity);
return &cache; return cache;
} }
} // namespace } // namespace
......
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