]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: rename gcController.findRunnable to findRunnableGCWorker
authorAustin Clements <austin@google.com>
Fri, 24 Apr 2015 18:17:42 +0000 (14:17 -0400)
committerAustin Clements <austin@google.com>
Mon, 27 Apr 2015 19:26:42 +0000 (19:26 +0000)
This avoids confusion with the main findrunnable in the scheduler.

Change-Id: I8cf40657557a8610a2fe5a2f74598518256ca7f0
Reviewed-on: https://go-review.googlesource.com/9305
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/proc1.go

index d173e68a38ccda687942dd8befa79128ede3e57f..bf1d89512fe6b1f14559cfe1d60df95326c0b737 100644 (file)
@@ -464,9 +464,9 @@ func (c *gcControllerState) endCycle() {
        c.workRatioAvg = workRatioWeight*workRatio + (1-workRatioWeight)*c.workRatioAvg
 }
 
-// findRunnable returns the background mark worker for _p_ if it
+// findRunnableGCWorker returns the background mark worker for _p_ if it
 // should be run. This must only be called when gcBlackenEnabled != 0.
-func (c *gcControllerState) findRunnable(_p_ *p) *g {
+func (c *gcControllerState) findRunnableGCWorker(_p_ *p) *g {
        if gcBlackenEnabled == 0 {
                throw("gcControllerState.findRunnable: blackening not enabled")
        }
index 0859015b0ad86631e0db64cad4e504c59b3d0239..3751e35bb7f3ba8a741e8c085f4036c6a7688f8f 100644 (file)
@@ -1598,7 +1598,7 @@ top:
                }
        }
        if gp == nil && gcBlackenEnabled != 0 {
-               gp = gcController.findRunnable(_g_.m.p.ptr())
+               gp = gcController.findRunnableGCWorker(_g_.m.p.ptr())
                if gp != nil {
                        resetspinning()
                }