go/src/time
Ian Lance Taylor 329317472f [release-branch.go1.14] runtime: don't panic on racy use of timers
If we see a racy use of timers, as in concurrent calls to Timer.Reset,
do the operations in an unpredictable order, rather than crashing.

Updates #37400
Updates #37449
Fixes #37494

Change-Id: Idbac295df2dfd551b6d762909d5040fc532c1b34
Reviewed-on: https://go-review.googlesource.com/c/go/+/221077
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
(cherry picked from commit 98858c4380)
Reviewed-on: https://go-review.googlesource.com/c/go/+/221298
2020-02-27 23:15:33 +00:00
..
example_test.go time: change variable name to next 2019-11-10 12:12:46 +00:00
export_android_test.go
export_test.go time: add support for day-of-year in Format and Parse 2019-03-08 01:21:33 +00:00
export_windows_test.go
format.go time: document how Parse handles two-digit years 2020-01-23 20:44:44 +00:00
format_test.go time: fix comment in test 2019-12-02 16:11:24 +00:00
genzabbrs.go time: change genzabbrs.go to fetch windowsZones.xml file from GitHub 2019-10-17 08:27:57 +00:00
internal_test.go runtime, syscall, time: add and use resettimer 2019-10-21 17:06:22 +00:00
mono_test.go
sleep.go time: further clarifications to the (*Timer).Stop docs 2019-12-17 00:18:33 +00:00
sleep_test.go all: fix invalid invocations of Fatalf in goroutines 2020-01-03 01:36:26 +00:00
sys_plan9.go
sys_unix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
sys_windows.go
tick.go
tick_test.go time: give TestTicker more time on darwin-arm64 2019-11-19 16:24:02 +00:00
time.go time: add a sentence about distant times to time.Time.Unix 2020-01-13 21:56:50 +00:00
time_test.go [release-branch.go1.14] runtime: don't panic on racy use of timers 2020-02-27 23:15:33 +00:00
zoneinfo.go time: document an alternative way of setting the system's time zone 2019-11-01 21:41:41 +00:00
zoneinfo_abbrs_windows.go time: change genzabbrs.go to fetch windowsZones.xml file from GitHub 2019-10-17 08:27:57 +00:00
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_ios.go os,time: fix tests on iOS 2019-05-01 13:53:44 +00:00
zoneinfo_js.go
zoneinfo_plan9.go
zoneinfo_read.go time: reject tzdata with no zones 2019-02-27 18:08:03 +00:00
zoneinfo_test.go time: reject tzdata with no zones 2019-02-27 18:08:03 +00:00
zoneinfo_unix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
zoneinfo_windows.go
zoneinfo_windows_test.go