glibc/time
Kevin Easton 6807b1db82 Reduce lock contention in __tz_convert() [BZ #16145] (partial fix)
This patch is an "easy win" partial fix for BZ #16145, which notes
the heavy contention on tzset_lock when multiple threads are converting
times with localtime_r().

In __tz_convert(), the lock does not need to be held after
__tzfile_compute() / __tz_compute() have been called, so we can move the
unlock up.  At this point there is still significant work to be done in
__offtime(), so we see some improvement (in my testing with 8 cores
banging on localtime_r(), ~20% improvement in throughput).
2015-02-24 23:58:59 -05:00
..
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Depend * time/Makefile (tst-getdate-ENV): Add TZDIR to environment. 2001-07-18 09:43:36 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Sort Versions files 2013-02-17 16:34:04 +01:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
alt_digit.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
asctime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-asctime.c [BZ #1460] 2005-10-14 15:17:40 +00:00
bug-asctime_r.c [BZ #1468] 2005-10-14 17:20:58 +00:00
bug-getdate1.c * time/bug-getdate1.c (do_test): Don't use century values which 2007-12-12 18:23:00 +00:00
bug-mktime1.c [BZ #2821] 2006-09-09 16:56:29 +00:00
clock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clocktest.c Define CLOCKS_PER_SEC type to the type clock_t 2015-01-06 04:59:13 -08:00
ctime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ctime_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
datemsk * time/Makefile (tst-getdate-ENV): Add TZDIR to environment. 2001-07-18 09:43:36 +00:00
difftime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dysize.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
era.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ftime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getdate.c Fix time/getdate.c build. 2015-02-08 17:45:25 +01:00
getitimer.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gmtime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lc-time-cleanup.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
localtime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mktime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
offtime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setitimer.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
settimeofday.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
stime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strftime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strftime_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strptime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strptime_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test_time.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
time.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
time.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timegm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timespec_get.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-ftime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-ftime_l.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-getdate.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mktime.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-mktime2.c Testsuite #include fixes. 2012-04-02 22:31:32 +02:00
tst-mktime3.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-posixtz.c Replace %ld with %jd and cast to intmax_t 2014-12-30 08:09:43 -08:00
tst-strftime.c (do_test): Add tests for - flag. 2003-05-11 22:41:23 +00:00
tst-strptime-whitespace.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-strptime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-strptime2.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-strptime3.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst_wcsftime.c Update. 1999-06-16 22:55:47 +00:00
tzfile.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tzset.c Reduce lock contention in __tz_convert() [BZ #16145] (partial fix) 2015-02-24 23:58:59 -05:00
wcsftime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wcsftime_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00