aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rdebug.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/rdebug.go')
-rw-r--r--src/runtime/rdebug.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/rdebug.go b/src/runtime/rdebug.go
index 1b213f1934..7ecb2a52ee 100644
--- a/src/runtime/rdebug.go
+++ b/src/runtime/rdebug.go
@@ -15,8 +15,8 @@ func setMaxStack(in int) (out int) {
//go:linkname setPanicOnFault runtime/debug.setPanicOnFault
func setPanicOnFault(new bool) (old bool) {
- _g_ := getg()
- old = _g_.paniconfault
- _g_.paniconfault = new
+ gp := getg()
+ old = gp.paniconfault
+ gp.paniconfault = new
return old
}