]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/symtab] Add sect_off map to partial_symtab
authorTom de Vries <tdevries@suse.de>
Mon, 21 Jun 2021 10:19:00 +0000 (12:19 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 24 Jun 2021 15:44:35 +0000 (17:44 +0200)
commita3d638484949f751aa8c7a8612faf49b6c761812
tree1533ec394942e478b3f0b5d23ea7830dc855df7b
parent560671a154d21c7982c039b98576a9d287e7665f
[gdb/symtab] Add sect_off map to partial_symtab

Initially, we added a sect_off field to partial_symbol, but that turned out
to make the bcache aspect of partial symbols ineffective, changing the
"percentage of duplicates" for "partial symbol cache" as reported by "maint
print statistics" from 95% to 0%.

This showed up both as a slow down and more memory usage.

At least parts of the slow down could possibly be addressed by removing the
bcache aspect entirely (given that there are no duplicates), but that wouldn't
address the increase in memory usage.

Instead, implement the sect_off field as a side table.
gdb/psympriv.h