This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16145] New: localtime_r etc holds lock via __tz_convert
- From: "ben.maurer at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 08 Nov 2013 19:09:08 +0000
- Subject: [Bug libc/16145] New: localtime_r etc holds lock via __tz_convert
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=16145
Bug ID: 16145
Summary: localtime_r etc holds lock via __tz_convert
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: ben.maurer at gmail dot com
CC: drepper.fsp at gmail dot com
__tz_convert contains a lock tzset_lock. When doing profiling of a real world
application, I noticed that ~5% of our context switches came from this lock.
There should be a more efficient way to represent this lock -- for example, if
the timezone can be represented as a 32 bit integer, an atomic compare-and-swap
could be used to change it. Alternatively a sequence lock approach could be
used.
--
You are receiving this mail because:
You are on the CC list for the bug.