]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Precompute hash value for symbol_set_names users/cbiesinger/parallel-minsyms-mutex
authorChristian Biesinger <cbiesinger@google.com>
Thu, 3 Oct 2019 18:05:06 +0000 (13:05 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 3 Oct 2019 18:17:12 +0000 (13:17 -0500)
commitb4fbb96b58d152194f0ffeefd35eea9a1bd89a52
treef368d93c07bc97344b97dfbd909237f24efa7475
parente1f6a52ca259c3b9bb4b90022f77ee5c99743ccc
Precompute hash value for symbol_set_names

We can also compute the hash for the mangled name on a background
thread so make this function even faster (about a 7% speedup).

gdb/ChangeLog:

2019-10-03  Christian Biesinger  <cbiesinger@google.com>

* minsyms.c (minimal_symbol_reader::install): Also compute the hash
of the mangled name on the background thread.
* symtab.c (symbol_set_names): Allow passing in the hash of the
linkage_name.
* symtab.h (symbol_set_names): Likewise.
gdb/minsyms.c
gdb/symtab.c
gdb/symtab.h