]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwP.h: Add locking to __libdw_dieabbrev
authorAaron Merey <amerey@redhat.com>
Tue, 16 Jul 2024 16:25:57 +0000 (12:25 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 16 Jul 2024 20:22:36 +0000 (16:22 -0400)
commitac0e88d8b4243dc78d8c7fbd48b2ca53a0820f93
tree5c4f57f7893f6a55ef2269de04cdf929b4c6a636
parent96fce7b66834304b9fc10658c66935ab83fec134
libdwP.h: Add locking to __libdw_dieabbrev

        * libdw/libdwP.h (__libdw_dieabbrev): Add locking.
        (struct Dwarf): Add dwarf_lock.
        (struct Dwarf_CU): Add abbrev_lock, 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>
v2 changes:
This replaces patch "libdw: Add locking around __libdw_dieabbrev for
dwarf_hasattr".  Mark suggested that we remove lazy abbrev reading
in order to simplify the locking of __libdw_dieabbrev.  This is
a fair bit of work so for now lets just put a write lock around all
of __libdw_dieabbrev.  The removal of lazy reading of abbrev will be
done in a future patch.
libdw/dwarf_formref_die.c
libdw/dwarf_setalt.c
libdw/libdwP.h