]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwP.h: Remove abbrev_lock
authorAaron Merey <amerey@redhat.com>
Thu, 3 Jul 2025 18:20:03 +0000 (14:20 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 3 Jul 2025 18:24:54 +0000 (14:24 -0400)
commit56d9896abcb8a9a648192d570635f519c4a63021
treedf94c397429e3226b5c65297c9ed820fa45a13f4
parent7159dc3fb43fda5134461d861566ae311478231b
libdwP.h: Remove abbrev_lock

Improve __libdw_dieabbrev performance by removing abbrev_lock.  This
lock protects the Dwarf_Die abbrev member due to lazy loading.

Instead, eagerly load abbrev during Dwarf_Die initialization so that
the member is readonly and requires no locking.

Signed-off-by: Aaron Merey <amerey@redhat.com>
libdw/dwarf_begin_elf.c
libdw/dwarf_decl_file.c
libdw/dwarf_end.c
libdw/dwarf_getscopevar.c
libdw/libdwP.h
libdw/libdw_findcu.c