]> Cypherpunks repositories - gostls13.git/commit
runtime: fix notetsleepg deadline on js/wasm
authorRichard Musiol <mail@richard-musiol.de>
Tue, 11 Dec 2018 12:59:18 +0000 (13:59 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 2 Jan 2019 15:41:44 +0000 (15:41 +0000)
commitf4f65941246bfee2ef742a5a4920f86d80ab4762
treeb0c2891deed8a0de85e20d7e3be46f9622923254
parent204a8f55dc2e0ac8d27a781dab0da609b98560da
runtime: fix notetsleepg deadline on js/wasm

A notetsleepg may get stuck if its timeout callback gets invoked
exactly on its deadline due to low precision of nanotime. This change
fixes the comparison so it also resolves the note if the timestamps are
equal.

Updates #28975

Change-Id: I045d2f48b7f41cea0caec19b56876e9de01dcd6c
Reviewed-on: https://go-review.googlesource.com/c/153558
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/lock_js.go