]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Make libdw_find_split_unit thread-safe
authorHeather McIntyre <hsm2@rice.edu>
Tue, 20 Aug 2024 20:42:03 +0000 (16:42 -0400)
committerAaron Merey <amerey@redhat.com>
Wed, 21 Aug 2024 00:19:13 +0000 (20:19 -0400)
commit2630bce7476b70e2abb42da0aabaa63006b290cf
treef4af2528e8d22adf05b77289d311884139b63d64
parent28b74a1bf73b86ec461c20e17c405d8b64bdba77
libdw: Make libdw_find_split_unit thread-safe

* libdw/dwarf_end.c (cu_free): Free split_lock.
* libdw/dwarf_formref_die.c (dwarf_formref_die): Add locking
  around call to __libdw_intern_next_unit.
* libdw/libdwP.h (struct Dwarf_CU): Add split_lock.
* libdw/libdw_find_split_unit.c (__libdw_find_split_unit):
  Add locking.
* libdw/libdw_findcu.c (__libdw_intern_next_unit): Init
  split_lock.

Signed-off-by: Heather S. McIntyre <hsm2@rice.edu>
Signed-off-by: Aaron Merey <amerey@redhat.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/dwarf_end.c
libdw/dwarf_formref_die.c
libdw/libdwP.h
libdw/libdw_find_split_unit.c
libdw/libdw_findcu.c