llvm-project/lld/include/lld
Reid Kleckner 3eb16fe4e9 [LLD] Have only one SpecificAllocator per type
Previously, the SpecificAllocator was a static local in the `make<T>`
function template. Using static locals is nice because they are only
constructed and registered if they are accessed. However, if there are
multiple calls to make<> with different constructor parameters, we would
get multiple static local variable instances. This is undesirable and
leads to extra memory allocations. I noticed there were two sources of
DefinedRegular allocations while checking heap profiles.
2020-06-02 14:09:09 -07:00
..
Common [LLD] Have only one SpecificAllocator per type 2020-06-02 14:09:09 -07:00
Core [lld] NFC: fix trivial typos in comments 2020-04-02 01:21:36 +09:00
ReaderWriter [lld] Fix trivial typos in comments 2020-01-06 10:25:48 -08:00