]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: allow for usleep2HighRes to run without TLS setup
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 21 Nov 2020 03:56:26 +0000 (14:56 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 24 Nov 2020 07:07:06 +0000 (07:07 +0000)
commit6965b01ea248cabb70c3749fd218b36089a21efb
treeb066decdff387f9a8ac59fa04cbd1cb6042ea7ad
parent7dc5d909fb465345bf1583eb978aaa56ca365f38
runtime: allow for usleep2HighRes to run without TLS setup

This change adjusts usleep2HighRes so it does not crash when TLS is
not configured. When g is not available, usleep2HighRes just calls
usleep2 instead.

Updates #8687

Change-Id: Idbb80f7b71d1da350a6a7df7c49154eb1ffe29a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/271907
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Simon Rozman <simon@rozman.si>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s