Skip to content

Commit 8e1895d

Browse files
committed
Fixed bad goroutine status.
1 parent 09a8f27 commit 8e1895d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/proc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ func casfrom_Gscanstatus(gp *g, oldval, newval uint32) {
12141214
_Gscanwaiting,
12151215
_Gscanrunning,
12161216
_Gscansyscall,
1217-
_Gscandeadlocked,
1217+
_Gscanleaked,
12181218
_Gscanpreempted:
12191219
if newval == oldval&^_Gscan {
12201220
success = gp.atomicstatus.CompareAndSwap(oldval, newval)
@@ -1235,7 +1235,7 @@ func castogscanstatus(gp *g, oldval, newval uint32) bool {
12351235
case _Grunnable,
12361236
_Grunning,
12371237
_Gwaiting,
1238-
_Gdeadlocked,
1238+
_Gleaked,
12391239
_Gsyscall:
12401240
if newval == oldval|_Gscan {
12411241
r := gp.atomicstatus.CompareAndSwap(oldval, newval)

0 commit comments

Comments
 (0)