aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_debug_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_debug_test.go')
-rw-r--r--src/runtime/export_debug_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/export_debug_test.go b/src/runtime/export_debug_test.go
index 09e9779696..2d8a133409 100644
--- a/src/runtime/export_debug_test.go
+++ b/src/runtime/export_debug_test.go
@@ -109,7 +109,7 @@ func (h *debugCallHandler) inject(info *siginfo, ctxt *sigctxt, gp2 *g) bool {
// a signal handler. Add the go:nowritebarrierrec annotation and restructure
// this to avoid write barriers.
- switch h.gp.atomicstatus {
+ switch h.gp.atomicstatus.Load() {
case _Grunning:
if getg().m != h.mp {
println("trap on wrong M", getg().m, h.mp)