aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-02-24 18:15:32 +0100
committerGopher Robot <gobot@golang.org>2023-03-13 14:20:41 +0000
commitb6f29d23654eba09209db00704ccef1f01a60c71 (patch)
treefbf02d071ad1a82d7bd6a85d014881543a936070 /src/bytes
parentb561ebab46124c3542ee2d67c68ca770b67cb8dc (diff)
downloadgo-b6f29d23654eba09209db00704ccef1f01a60c71.tar.xz
runtime: implement high resolution timer on windows arm/arm64
This CL moves the usleep2HighRes from assembly to good old Go. This is safe because since CL 288793 usleep is always called with a g, else one wold have to call usleep_no_g. This condition was not enforced when high resolution timers were first implemented on Windows (CL 248699), so the implementation was done in assembly. Other than removing a bunch of obscure assembly code, this CL makes high resolution timers work on windows arm/arm64 by free, as the system calls are the same in all windows platforms. Change-Id: I41ecf78026fd7e11e85258a411ae074a77e8c7fc Reviewed-on: https://go-review.googlesource.com/c/go/+/471142 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Diffstat (limited to 'src/bytes')
0 files changed, 0 insertions, 0 deletions