• Dave Cheney's avatar
    cgo/misc/test: burn CPU to improve sleep accuracy · d0736775
    Dave Cheney authored
    Fixes #4008.
    
    Run a background goroutine that wastes CPU to trick the
    power management into raising the CPU frequency which,
    by side effect, makes sleep more accurate on arm.
    
    === RUN TestParallelSleep
    --- PASS: TestParallelSleep (1.30 seconds)
    _cgo_gotypes.go:772:    sleep(1) slept for 1.000458s
    
    R=minux.ma, r
    CC=golang-dev
    https://golang.org/cl/6498060
    d0736775
Name
Last commit
Last update
..
IntelliJIDEA Loading commit data...
arm Loading commit data...
bash Loading commit data...
bbedit Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
dashboard Loading commit data...
dist Loading commit data...
emacs Loading commit data...
fraise Loading commit data...
goplay Loading commit data...
kate Loading commit data...
notepadplus Loading commit data...
osx Loading commit data...
swig Loading commit data...
vim Loading commit data...
xcode Loading commit data...
zsh Loading commit data...
benchcmp Loading commit data...
pprof Loading commit data...