diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2016-03-18 10:56:23 +0100 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2016-04-09 16:11:41 +0000 |
commit | 0435e88a119fd057aa7209591ba3dff122c9f24c (patch) | |
tree | 700c7c30bd4e607e5dd6789bfea72d229f52f262 /src/runtime/export_windows_test.go | |
parent | 9d4efdfd12f47f1ed8ce482ebeeb4d4e30a2dbc6 (diff) | |
download | go-git-0435e88a119fd057aa7209591ba3dff122c9f24c.tar.gz |
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>
Diffstat (limited to 'src/runtime/export_windows_test.go')
-rw-r--r-- | src/runtime/export_windows_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/runtime/export_windows_test.go b/src/runtime/export_windows_test.go index 66c103709c..536b398fd7 100644 --- a/src/runtime/export_windows_test.go +++ b/src/runtime/export_windows_test.go @@ -8,8 +8,11 @@ package runtime import "unsafe" -var TestingWER = &testingWER -var OsYield = osyield +var ( + TestingWER = &testingWER + OsYield = osyield + TimeBeginPeriodRetValue = &timeBeginPeriodRetValue +) func NumberOfProcessors() int32 { var info systeminfo |