go/src/pkg/time
Dave Cheney d98b3a7ee5 time: use an alternative method of yielding during Overflow timer test
Fixes #6874.

Use runtime.GC() as a stronger version of runtime.Gosched() which tends to bias the running goroutine in an otherwise idle system. This appears to reduce the worst case number of spins from 600 down to 30 on my 2 core system under high load.

LGTM=iant
R=golang-codereviews, lucio.dere, iant, dvyukov
CC=golang-codereviews
https://golang.org/cl/56540046
2014-02-02 16:05:07 +11:00
..
Makefile time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
example_test.go time: improve the explanation of the working of Format and Parse 2013-04-22 11:36:17 -07:00
export_test.go time: correct path to time zone zip file on Unix 2013-10-29 17:11:51 -04:00
export_windows_test.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
format.go time: fix ParseDuration overflow when given more than 9 digits on 32-bit arch 2013-10-22 18:33:05 -04:00
format_test.go time: break parse and formatting tests into a separate source file 2014-01-16 14:30:01 -08:00
genzabbrs.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
internal_test.go time: use an alternative method of yielding during Overflow timer test 2014-02-02 16:05:07 +11:00
sleep.go time: add more docs on Sleep 2013-08-28 11:16:55 -07:00
sleep_test.go time: use an alternative method of yielding during Overflow timer test 2014-02-02 16:05:07 +11:00
sys_plan9.go os,time: fix Plan 9 build 2012-02-20 12:31:24 +11:00
sys_unix.go all: add solaris build tags 2014-01-07 23:53:30 -05:00
sys_windows.go time: switch to using (uncompressed) zoneinfo zip file 2012-02-19 03:16:20 -05:00
tick.go time: clarify why timer.Stop and ticker.Stop don't close the channel 2012-11-08 23:25:48 +08:00
tick_test.go time: add tests for Tick, NewTicker with negative duration 2014-01-06 10:32:07 -08:00
time.go time: make Time implement encoding interfaces 2013-08-14 00:34:00 -04:00
time_test.go time: break parse and formatting tests into a separate source file 2014-01-16 14:30:01 -08:00
zoneinfo.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00
zoneinfo_abbrs_windows.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
zoneinfo_plan9.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00
zoneinfo_read.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00
zoneinfo_test.go time: correctly handle timezone before first transition time 2014-01-31 14:40:13 -08:00
zoneinfo_unix.go all: add solaris build tags 2014-01-07 23:53:30 -05:00
zoneinfo_windows.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00
zoneinfo_windows_test.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00