Precompute hash value for symbol_set_names
authorChristian Biesinger <cbiesinger@google.com>
Thu, 3 Oct 2019 18:05:06 +0000 (13:05 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 27 Nov 2019 21:36:59 +0000 (15:36 -0600)
commite76b224615f88255a3fd20d613983dde6cc240b3
tree054769222cac115cdeaa6a89e46d5172a9e64ce6
parent640ab94712483457b99bd1039b52821c510b28a7
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-11-27  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.

Change-Id: I044449e7eb60cffc1c43efd3412f2b485bd9faac
gdb/ChangeLog
gdb/minsyms.c
gdb/symtab.c
gdb/symtab.h