]> Cypherpunks repositories - gostls13.git/commit
runtime: handle timer overflow in tsleep
authorAnthony Martin <ality@pbrane.org>
Fri, 6 Sep 2013 19:47:39 +0000 (15:47 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 6 Sep 2013 19:47:39 +0000 (15:47 -0400)
commit3548ab5ebb9b729f8399693488d537e37688b0ef
treeb07ed079b2c2807b021732e858cd18b127bc7119
parent39e004b69eba1b56c03e488d0002eb6a75598fc5
runtime: handle timer overflow in tsleep

Make sure we never pass a timer into timerproc with
a negative duration since it will cause other timers
to never expire.

Fixes #5321.

R=golang-dev, minux.ma, remyoudompheng, mikioh.mikioh, r, bradfitz, rsc, dvyukov
CC=golang-dev
https://golang.org/cl/9035047
src/pkg/runtime/time.goc
src/pkg/time/internal_test.go
src/pkg/time/sleep_test.go