[Bug libc/16145] New: localtime_r etc holds lock via __tz_convert
ben.maurer at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Nov 8 19:10:00 GMT 2013
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.
More information about the Glibc-bugs
mailing list