[PATCH] libdw: add thread-safety to dwarf_getabbrev()

Florian Weimer fw@deneb.enyo.de
Sun Oct 27 08:59:00 GMT 2019

* Mark Wielaard:

>> Current glibc versions have a thread-local fast path, which should
>> address some of these concerns.  It's still not a bump-pointer
>> allocator, but at least there are no atomics on that path.
> Since which version of glibc is there a thread-local fast path?

It was added in:

commit d5c3fafc4307c9b7a4c7d5cb381fcdbfad340bcc
Author: DJ Delorie <dj@delorie.com>
Date:   Thu Jul 6 13:37:30 2017 -0400

    Add per-thread cache to malloc

So glibc 2.26.  But it is a build-time option, enabled by default, but
it can be switched off by distributions.

More information about the Elfutils-devel mailing list