From 40a7430f88ed125f2ae0db13f3be603c99d06312 Mon Sep 17 00:00:00 2001 From: geedchin Date: Tue, 5 May 2020 01:11:12 +0800 Subject: [PATCH] fix wrong var name,from waitReasonForceGGIdle to waitReasonForceGCIdle --- src/runtime/proc.go | 2 +- src/runtime/runtime2.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 1d04c156d3..bd114496b2 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -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") diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 89a2419110..2c566b5424 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -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",