Commit d1b66439 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: eliminate excessive notewakeup calls in timers

If the timer goroutine is wakeup by timeout,
other goroutines will still notewakeup because sleeping is still set.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12763043
parent e33e476e
......@@ -175,6 +175,7 @@ timerproc(void)
for(;;) {
runtime·lock(&timers);
timers.sleeping = false;
now = runtime·nanotime();
for(;;) {
if(timers.len == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment