Skip to content

Commit

Permalink
runtime: rename gcController.findRunnable to findRunnableGCWorker
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aclements committed Apr 27, 2015
1 parent bb63205 commit 1b01910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/runtime/mgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/proc1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 1b01910

Please sign in to comment.