Populate seen_names hash in cooked_index_shard::do_finalize
authorTom Tromey <tromey@adacore.com>
Fri, 10 Feb 2023 14:18:15 +0000 (07:18 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 27 Mar 2023 14:18:55 +0000 (08:18 -0600)
commitb6c55de76b1a30debca52f52c479ca3b8e3fee53
treeca505f268507c25ad016b7b6bd2c12e4717d35cf
parent2215170485845673379b59d3e4e5e1a9ac01ba41
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.
gdb/dwarf2/cooked-index.c