This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/22062] Unnecessary locking when reading configuration in iconv/gconv_conf.c
- From: "arjun.is at lostca dot se" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 26 Oct 2017 09:26:56 +0000
- Subject: [Bug locale/22062] Unnecessary locking when reading configuration in iconv/gconv_conf.c
- Auto-submitted: auto-generated
- References: <bug-22062-131@http.sourceware.org/bugzilla/>
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.