mirror of
https://github.com/golang/go.git
synced 2026-02-06 10:55:05 +03:00
runtime: delete unused parameter of userForced
delete unused parameter userForced
Change-Id: I71c26ab5e3fadc532b6b1f266212c6f620769efd
GitHub-Last-Rev: 6a32c8ff6e
GitHub-Pull-Request: golang/go#76732
Reviewed-on: https://go-review.googlesource.com/c/go/+/727680
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Tony Tang <jianfeng.tony@gmail.com>
This commit is contained in:
@@ -1473,7 +1473,7 @@ func (c *GCController) Revise(d GCControllerReviseDelta) {
|
||||
|
||||
func (c *GCController) EndCycle(bytesMarked uint64, assistTime, elapsed int64, gomaxprocs int) {
|
||||
c.assistTime.Store(assistTime)
|
||||
c.endCycle(elapsed, gomaxprocs, false)
|
||||
c.endCycle(elapsed, gomaxprocs)
|
||||
c.resetLive(bytesMarked)
|
||||
c.commit(false)
|
||||
}
|
||||
|
||||
@@ -1167,7 +1167,7 @@ top:
|
||||
// endCycle depends on all gcWork cache stats being flushed.
|
||||
// The termination algorithm above ensured that up to
|
||||
// allocations since the ragged barrier.
|
||||
gcController.endCycle(now, int(gomaxprocs), work.userForced)
|
||||
gcController.endCycle(now, int(gomaxprocs))
|
||||
|
||||
// Perform mark termination. This will restart the world.
|
||||
gcMarkTermination(stw)
|
||||
|
||||
@@ -595,9 +595,7 @@ func (c *gcControllerState) revise() {
|
||||
}
|
||||
|
||||
// endCycle computes the consMark estimate for the next cycle.
|
||||
// userForced indicates whether the current GC cycle was forced
|
||||
// by the application.
|
||||
func (c *gcControllerState) endCycle(now int64, procs int, userForced bool) {
|
||||
func (c *gcControllerState) endCycle(now int64, procs int) {
|
||||
// Record last heap goal for the scavenger.
|
||||
// We'll be updating the heap goal soon.
|
||||
gcController.lastHeapGoal = c.heapGoal()
|
||||
|
||||
Reference in New Issue
Block a user