]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use newm for profileloop
authorAustin Clements <austin@google.com>
Tue, 13 Apr 2021 12:32:21 +0000 (08:32 -0400)
committerAustin Clements <austin@google.com>
Tue, 13 Apr 2021 21:13:11 +0000 (21:13 +0000)
commite69f02265c74529a368a2ff27fdce4aeb3483e8b
tree1d7c994ca75b2d642a8a3b6ec37f1bb1c0cb4078
parente512bc2cf0ce18342571fdbcdcd43d2bb13ef55b
runtime: use newm for profileloop

This replaces the externalthreadhandler-based implementation of
profileloop with one that uses newm to start a new thread. This is a
step toward eliminating externalthreadhandler.

For #45530.

Change-Id: Id8e5540423fe2d2004024b649afec6998f77b092
Reviewed-on: https://go-review.googlesource.com/c/go/+/309633
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/os_windows.go
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s
src/runtime/sys_windows_arm.s
src/runtime/sys_windows_arm64.s