]> Cypherpunks repositories - gostls13.git/commitdiff
time: stop referring to timerproc in comment
authorIan Lance Taylor <iant@golang.org>
Wed, 11 Mar 2020 05:11:00 +0000 (22:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Mar 2020 00:19:08 +0000 (00:19 +0000)
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>
src/time/internal_test.go

index 3bca88e2b994cd4fa693614a6af408cb22871dac..35ce69b2282ad3f607a98122c61dee6e17c8e6e2 100644 (file)
@@ -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
 }