mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
Populate seen_names hash in cooked_index_shard::do_finalize
Hannes pointed out that cooked_index_shard::do_finalize never populates the seen_names hash table. This patch adds the necessary store. This reduces memory use a little for "gdb gdb": (before) Space used: 28909568 (+0 for this command) (after) Space used: 28884992 (+0 for this command) What this means, btw, is that in gdb there are not many symbols that are both mentioned in many CUs and that also require name canonicalization. It's possible this would differ in other programs.
This commit is contained in:
parent
2215170485
commit
b6c55de76b
@ -378,6 +378,7 @@ cooked_index_shard::do_finalize ()
|
||||
entry->canonical = canon_name.get ();
|
||||
m_names.push_back (std::move (canon_name));
|
||||
}
|
||||
*slot = entry;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user