go/src
Christos Zoulas 66fcf45477 runtime: make NetBSD lwp_park use monotonic time
This change updates runtime.semasleep to no longer call
runtime.nanotime and instead calls lwp_park with a duration to sleep
relative to the monotonic clock, so the nanotime is never called.
(This requires updating to a newer version of the lwp_park system
call, which is safe, because Go 1.10 will require the unreleased
NetBSD 8+ anyway)

Additionally, this change makes the nanotime function use the
monotonic clock for netbsd/arm, which was forgotten from
https://golang.org/cl/81135 which updated netbsd/amd64 and netbsd/386.

Because semasleep previously depended on nanotime, the past few days
of netbsd have likely been unstable because lwp_park was then mixing
the monotonic and wall clocks. After this CL, lwp_park no longer
depends on nanotime.

Original patch submitted at:
https://www.netbsd.org/~christos/go-lwp-park-clock-monotonic.diff

This commit message (any any mistakes therein) were written by Brad
Fitzpatrick. (Brad migrated the patch to Gerrit and checked CLAs)

Updates #6007
Fixes #22968

Also updates netbsd/arm to use monotonic time for

Change-Id: If77ef7dc610b3025831d84cdfadfbbba2c52acb2
Reviewed-on: https://go-review.googlesource.com/81715
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-12-04 03:29:56 +00:00
..
archive archive/zip: add test for Modified vs ModTime behavior 2017-12-01 00:22:21 +00:00
bufio bufio: Use maxConsecutiveEmptyReads instead of 100 2017-11-14 05:21:00 +00:00
builtin builtin: improve docs for make slice 2017-11-18 01:48:52 +00:00
bytes bytes: mention strings.Builder in Buffer.String docs 2017-11-30 01:46:50 +00:00
cmd cmd/cgo: for C bitfields use only valid Go integer types 2017-12-01 23:50:23 +00:00
compress
container
context
crypto crypto/elliptic: reduce allocations on amd64 2017-11-30 21:01:10 +00:00
database/sql database/sql: check for arg counts after eliminating arguments 2017-11-18 01:52:49 +00:00
debug debug/gosym: update docs for changes in Go 1.3 2017-11-30 22:49:27 +00:00
encoding Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
errors
expvar
flag
fmt
go go/types: don't use directory foo which might exist under GOPATH 2017-12-01 22:37:11 +00:00
hash Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
html
image Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
index/suffixarray
internal internal/poll: do not use Windows TransmitFile with pipes 2017-11-26 01:41:33 +00:00
io io: eliminate full copy of copy loop in CopyN 2017-11-16 02:24:37 +00:00
log
math math: remove asm version of Dim 2017-11-30 21:00:33 +00:00
mime
net net/url: document Parse more 2017-12-01 23:29:48 +00:00
os os: clarify docs on Interrupt and Kill 2017-12-02 02:49:01 +00:00
path
plugin
reflect reflect: audit and explain safety of all unsafe.Pointer additions 2017-12-01 21:05:40 +00:00
regexp Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
runtime runtime: make NetBSD lwp_park use monotonic time 2017-12-04 03:29:56 +00:00
sort
strconv
strings bytes, strings: restore O(1) behavior of IndexAny(s, "") and LastIndexAny(s, "") 2017-11-15 21:26:05 +00:00
sync sync/atomic: remove noCopy from Value 2017-12-01 16:38:53 +00:00
syscall Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
testing cmd/go: honor -timeout=0 to mean no timeout 2017-12-01 21:09:19 +00:00
text text/template: remove unnecessary lexer field 2017-11-10 04:13:30 +00:00
time Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
unicode Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
unsafe
vendor/golang_org/x vendor: update golang.org/x/net/nettest from upstream 2017-11-29 19:55:02 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: add alternate output format for bootstrap.bash, as used by builders 2017-11-30 17:37:23 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc