mirror of
https://github.com/golang/go
synced 2024-11-12 02:10:21 -07:00
fix wrong var name,from waitReasonForceGGIdle to waitReasonForceGCIdle
This commit is contained in:
parent
b3c0fe1d14
commit
40a7430f88
@ -252,7 +252,7 @@ func forcegchelper() {
|
||||
throw("forcegc: phase error")
|
||||
}
|
||||
atomic.Store(&forcegc.idle, 1)
|
||||
goparkunlock(&forcegc.lock, waitReasonForceGGIdle, traceEvGoBlock, 1)
|
||||
goparkunlock(&forcegc.lock, waitReasonForceGCIdle, traceEvGoBlock, 1)
|
||||
// this goroutine is explicitly resumed by sysmon
|
||||
if debug.gctrace > 0 {
|
||||
println("GC forced")
|
||||
|
@ -971,7 +971,7 @@ const (
|
||||
waitReasonChanReceive // "chan receive"
|
||||
waitReasonChanSend // "chan send"
|
||||
waitReasonFinalizerWait // "finalizer wait"
|
||||
waitReasonForceGGIdle // "force gc (idle)"
|
||||
waitReasonForceGCIdle // "force gc (idle)"
|
||||
waitReasonSemacquire // "semacquire"
|
||||
waitReasonSleep // "sleep"
|
||||
waitReasonSyncCondWait // "sync.Cond.Wait"
|
||||
@ -1001,7 +1001,7 @@ var waitReasonStrings = [...]string{
|
||||
waitReasonChanReceive: "chan receive",
|
||||
waitReasonChanSend: "chan send",
|
||||
waitReasonFinalizerWait: "finalizer wait",
|
||||
waitReasonForceGGIdle: "force gc (idle)",
|
||||
waitReasonForceGCIdle: "force gc (idle)",
|
||||
waitReasonSemacquire: "semacquire",
|
||||
waitReasonSleep: "sleep",
|
||||
waitReasonSyncCondWait: "sync.Cond.Wait",
|
||||
|
Loading…
Reference in New Issue
Block a user