Skip to content

Commit 09a8f27

Browse files
committed
Fixed status text for leaked goroutines.
1 parent 8dfad3c commit 09a8f27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/runtime/runtime2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const (
8787
// ready()ing this G.
8888
_Gpreempted // 9
8989

90-
// _Gleaked represents a deadlocked goroutine caught by the GC.
90+
// _Gleaked represents a leaked goroutine caught by the GC.
9191
_Gleaked // 10
9292

9393
// _Gscan combined with one of the above states other than
@@ -108,7 +108,7 @@ const (
108108
_Gscanwaiting = _Gscan + _Gwaiting // 0x1004
109109
_Gscanpreempted = _Gscan + _Gpreempted // 0x1009
110110

111-
_Gscandeadlocked = _Gscan + _Gleaked // 0x100a
111+
_Gscanleaked = _Gscan + _Gleaked // 0x100a
112112
)
113113

114114
const (

src/runtime/traceback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ var gStatusStrings = [...]string{
12061206
_Gwaiting: "waiting",
12071207
_Gdead: "dead",
12081208
_Gcopystack: "copystack",
1209-
_Gleaked: "deadlocked",
1209+
_Gleaked: "leaked",
12101210
_Gpreempted: "preempted",
12111211
}
12121212

0 commit comments

Comments
 (0)