]> Cypherpunks repositories - gostls13.git/commit
runtime: revert "do not call timeBeginPeriod on windows"
authorDmitry Vyukov <dvyukov@google.com>
Fri, 18 Mar 2016 09:56:23 +0000 (10:56 +0100)
committerDmitry Vyukov <dvyukov@google.com>
Sat, 9 Apr 2016 16:11:41 +0000 (16:11 +0000)
commit0435e88a119fd057aa7209591ba3dff122c9f24c
tree700c7c30bd4e607e5dd6789bfea72d229f52f262
parent9d4efdfd12f47f1ed8ce482ebeeb4d4e30a2dbc6
runtime: revert "do not call timeBeginPeriod on windows"

This reverts commit ab4c9298b8185a056ff1152f2c7bd9b38d3d06f3.

Sysmon critically depends on system timer resolution for retaking
of Ps blocked in system calls. See #14790 for an example
of a program where execution time goes from 2ms to 30ms if
timeBeginPeriod(1) is not used.

We can remove timeBeginPeriod(1) when we support UMS (#7876).

Update #14790

Change-Id: I362b56154359b2c52d47f9f2468fe012b481cf6d
Reviewed-on: https://go-review.googlesource.com/20834
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
misc/cgo/testcarchive/carchive_test.go
src/runtime/export_windows_test.go
src/runtime/os_windows.go
src/runtime/syscall_windows_test.go