This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16145] New: localtime_r etc holds lock via __tz_convert


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]