]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: correct waitReasonForceGGIdle to waitResonForceGCIdle
authorgeedchin <geedchin@gmail.com>
Tue, 5 May 2020 01:43:57 +0000 (01:43 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Tue, 5 May 2020 02:38:39 +0000 (02:38 +0000)
Change-Id: I211db915ce2e98555c58f4320ca58e91536f8f3d
GitHub-Last-Rev: 40a7430f88ed125f2ae0db13f3be603c99d06312
GitHub-Pull-Request: golang/go#38852
Reviewed-on: https://go-review.googlesource.com/c/go/+/232037
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/proc.go
src/runtime/runtime2.go

index 1d04c156d334a544f49d82486cb665c8602e4968..bd114496b2db5b11575f628b2b692c7ac27ec1a0 100644 (file)
@@ -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")
index 89a241911057a299ac3a20a592199611a75f5a72..2c566b5424b51dca9f5952dd89252b620c70a214 100644 (file)
@@ -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",