aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/proc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index ef3a0b7a0e..91740d1fa6 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -1254,8 +1254,8 @@ func castogscanstatus(gp *g, oldval, newval uint32) bool {
}
}
print("runtime: castogscanstatus oldval=", hex(oldval), " newval=", hex(newval), "\n")
- throw("castogscanstatus")
- panic("not reached")
+ throw("bad oldval passed to castogscanstatus")
+ return false
}
// casgstatusAlwaysTrack is a debug flag that causes casgstatus to always track