summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Utility/ConstString.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/source/Utility/ConstString.cpp b/lldb/source/Utility/ConstString.cpp
index 238fd7bdd28..2516ecf6a98 100644
--- a/lldb/source/Utility/ConstString.cpp
+++ b/lldb/source/Utility/ConstString.cpp
@@ -31,10 +31,7 @@ using namespace lldb_private;
class Pool {
public:
typedef const char *StringPoolValueType;
- // BumpPtrAllocator allocates in 4KiB chunks, any larger C++ project is going
- // to have megabytes of symbols, so allocate in larger chunks.
- typedef llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1048576> Allocator;
- typedef llvm::StringMap<StringPoolValueType, Allocator>
+ typedef llvm::StringMap<StringPoolValueType, llvm::BumpPtrAllocator>
StringPool;
typedef llvm::StringMapEntry<StringPoolValueType> StringPoolEntryType;
@@ -155,9 +152,7 @@ protected:
struct PoolEntry {
mutable llvm::sys::SmartRWMutex<false> m_mutex;
- // StringMap by default starts with 16 buckets, any larger project is
- // going to have many symbols, so start with a larger value.
- StringPool m_string_map = StringPool( 65536 );
+ StringPool m_string_map;
};
std::array<PoolEntry, 256> m_string_pools;
OpenPOWER on IntegriCloud