diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-03-10 22:11:00 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-03-13 00:19:08 +0000 |
commit | 85e87f9d81c00d38a196c40f3a93477bc4b3294f (patch) | |
tree | 2275c8fb1ead6732db84e5216f1ac53cfd41cf0c /src/time | |
parent | 1f231d74f6e6b7ce1ccdbf49fc12b022dd875196 (diff) | |
download | go-85e87f9d81c00d38a196c40f3a93477bc4b3294f.tar.gz go-85e87f9d81c00d38a196c40f3a93477bc4b3294f.zip |
time: stop referring to timerproc in comment
The timerproc function has been removed.
Fixes #37774
Change-Id: Ice5e1d8fec91cd6ee7f032e0d21e8315a26bc6a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/222783
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/internal_test.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/time/internal_test.go b/src/time/internal_test.go index 3bca88e2b9..35ce69b228 100644 --- a/src/time/internal_test.go +++ b/src/time/internal_test.go @@ -67,12 +67,13 @@ func CheckRuntimeTimerOverflow() { resetTimer(r, 0) }() - // If the test fails, we will hang here until the timeout in the testing package - // fires, which is 10 minutes. It would be nice to catch the problem sooner, - // but there is no reliable way to guarantee that timerproc schedules without - // doing something involving timerproc itself. Previous failed attempts have - // tried calling runtime.Gosched and runtime.GC, but neither is reliable. - // So we fall back to hope: We hope we don't hang here. + // If the test fails, we will hang here until the timeout in the + // testing package fires, which is 10 minutes. It would be nice to + // catch the problem sooner, but there is no reliable way to guarantee + // that timers are run without doing something involving the scheduler. + // Previous failed attempts have tried calling runtime.Gosched and + // runtime.GC, but neither is reliable. So we fall back to hope: + // We hope we don't hang here. <-t.C } |