]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: find g in Windows profiler using SP
authorRuss Cox <rsc@golang.org>
Wed, 27 Jan 2021 16:06:04 +0000 (11:06 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 19 Feb 2021 00:03:22 +0000 (00:03 +0000)
commitece954d8b8e13a76de891c8078c27c5e7f884f9f
treec41e14365f6428668f8e7f9bc1b685727c165279
parenta54f7fc0fde79e8edc696de002fe8a73604f077f
runtime: find g in Windows profiler using SP

The architecture-specific interpretation of m->tls[0]
is unnecessary and fragile. Delete it.

This CL is part of a stack adding windows/arm64
support (#36439), intended to land in the Go 1.17 cycle.
This CL is, however, not windows/arm64-specific.
It is cleanup meant to make the port (and future ports) easier.

Change-Id: I927345e52fa2f1741d4914478a29d1fb8acb0dc3
Reviewed-on: https://go-review.googlesource.com/c/go/+/288806
Trust: Russ Cox <rsc@golang.org>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/os_windows.go
src/runtime/sys_windows_arm.s