[Bug locale/22062] Unnecessary locking when reading configuration in iconv/gconv_conf.c

arjun.is at lostca dot se sourceware-bugzilla@sourceware.org
Thu Oct 26 09:27:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=22062

Arjun Shankar <arjun.is at lostca dot se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Data race when reading      |Unnecessary locking when
                   |configuration in            |reading configuration in
                   |iconv/gconv_conf.c          |iconv/gconv_conf.c

--- Comment #1 from Arjun Shankar <arjun.is at lostca dot se> ---
The review [1] of the patch I wrote for this revealed that no locking is
necessary at all because the entire routine is called via __libc_once. Given
this, the partial locking (when writing config to its data structures) during
__gconv_get_path should be thrown away.

[1] https://sourceware.org/ml/libc-alpha/2017-10/msg00428.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list