A cache of roughly capacity entries, backed by a folly::GenerationalCacheMap: lookups are lock-free, and an address that stops appearing in stack traces is eventually evicted in favour of one that does.
Declared in <folly/debugging/symbolizer/SymbolCache.h>
std::unique_ptr<SymbolCacheBase>
makeGenerationalSymbolCache(size_t capacity);
Prefer this to the LRU flavour wherever traces are symbolized often enough for lookups to contend.
A generational symbol cache.
| Name | Description |
|---|---|
| capacity | The approximate number of entries to retain. |