]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Compute msymbol hash codes in parallel users/cbiesinger/demangle-mutex
authorChristian Biesinger <cbiesinger@google.com>
Mon, 30 Sep 2019 21:47:37 +0000 (16:47 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 2 Oct 2019 21:59:04 +0000 (16:59 -0500)
commit85f7818c32fdf5b9fbd24f08320c54e9f9d50b4c
treea0cfce74856ad52ac711ccabf8391dd6768e523e
parent6ce6dd4b8c4862e7250dfad48965c303eb41af95
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-09-30  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.
gdb/minsyms.c