]> Cypherpunks repositories - gostls13.git/commit
runtime: fix profiling on windows/ARM
authorJordan Rhee <jordanrh@microsoft.com>
Tue, 11 Dec 2018 22:24:07 +0000 (14:24 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 12 Dec 2018 01:35:51 +0000 (01:35 +0000)
commit6764d7aeacd24f48875ce88a8e3c789cedfb2e28
tree4972b0705557064b414b17434ad0a53702048bb7
parent12c0f1b3e6ace3972bb3d328b2bdcadb6dceb198
runtime: fix profiling on windows/ARM

Fix profiling handler to get the correct g for the m being profiled.
Store a pointer to the TLS slot holding g in the thread's m. This
enables the profiling handler to get the current g for the thread,
even if the thread is executing external code or system code.

Updates #26148

Signed-off-by: Jordan Rhee <jordanrh@microsoft.com>
Change-Id: Ie061284c12341c76c7d96cc0c2d5bac969230829
Reviewed-on: https://go-review.googlesource.com/c/153718
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/os_windows.go
src/runtime/sys_windows_arm.s
src/runtime/tls_arm.s