From: Alex Brainman Date: Wed, 6 Aug 2014 07:24:03 +0000 (+1000) Subject: runtime: burn cpu before calling yield in windows runtime.systime X-Git-Tag: go1.4beta1~927 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bf13b711bd56367486f01d76ae344b8620a04694;p=gostls13.git runtime: burn cpu before calling yield in windows runtime.systime LGTM=dvyukov R=golang-codereviews, dvyukov CC=golang-codereviews https://golang.org/cl/117670043 --- diff --git a/src/pkg/runtime/os_windows.c b/src/pkg/runtime/os_windows.c index ee6eed002f..1dc0780ba9 100644 --- a/src/pkg/runtime/os_windows.c +++ b/src/pkg/runtime/os_windows.c @@ -280,7 +280,7 @@ runtime·systime(KSYSTEM_TIME *timeaddr) KSYSTEM_TIME t; int32 i; - for(i = 0; i < 10000; i++) { + for(i = 1; i < 10000; i++) { // these fields must be read in that order (see URL above) t.High1Time = timeaddr->High1Time; t.LowPart = timeaddr->LowPart;