Compute msymbol hash codes in parallel
authorChristian Biesinger <cbiesinger@google.com>
Mon, 30 Sep 2019 21:47:37 +0000 (16:47 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 27 Nov 2019 21:38:22 +0000 (15:38 -0600)
commitf29d7f6b83f60ca8dd64ec89ea803f79324ac12f
tree0327aeb93cbae0184589a04016d2c923d6e866b2
parente76b224615f88255a3fd20d613983dde6cc240b3
Compute msymbol hash codes in parallel

This is for the msymbol_hash and msymbol_demangled_hash hashtables
in objfile_per_bfd_storage. This basically computes those hash
codes together with the demangled symbol name in the background,
before it inserts the symbols in the hash table.

gdb/ChangeLog:

2019-11-27  Christian Biesinger  <cbiesinger@google.com>

* minsyms.c (add_minsym_to_hash_table): Use a previously computed
hash code if possible.
(add_minsym_to_demangled_hash_table): Likewise.
(minimal_symbol_reader::install): Compute the hash codes for msymbol
on the background thread.
* symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
Add these fields.

Change-Id: Ifaa3346e9998f05743bff9e2eaad3f83b954d071
gdb/ChangeLog
gdb/minsyms.c