elf: Simplify software TM implementation in _dl_find_object

System Internals / glibc - Florian Weimer [redhat.com] - 10 January 2022 12:31 UTC

With the current set of fences, the version update at the start of the TM write operation is redundant, and the version update at the end does not need to use an atomic read-modify-write operation.

Also use relaxed MO stores during the dlclose update, and skip any
version changes there.

e72ef23ee8 elf: Simplify software TM implementation in _dl_find_object
elf/dl-find_object.c | 56 +++++++++++++++++++---------------------------------
1 file changed, 20 insertions(+), 36 deletions(-)

Upstream: sourceware.org


  • Share