diff options
| author | Jordan Rhee <jordanrh@microsoft.com> | 2018-12-11 14:24:07 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-12-12 01:35:51 +0000 |
| commit | 6764d7aeacd24f48875ce88a8e3c789cedfb2e28 (patch) | |
| tree | 4972b0705557064b414b17434ad0a53702048bb7 /src/encoding | |
| parent | 12c0f1b3e6ace3972bb3d328b2bdcadb6dceb198 (diff) | |
| download | go-6764d7aeacd24f48875ce88a8e3c789cedfb2e28.tar.xz | |
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>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
