Skip to content

Commit 6a32c8f

Browse files
committed
runtime: delete unused parameter of userForced
1 parent 0d0d5c9 commit 6a32c8f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/runtime/export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ func (c *GCController) Revise(d GCControllerReviseDelta) {
14691469

14701470
func (c *GCController) EndCycle(bytesMarked uint64, assistTime, elapsed int64, gomaxprocs int) {
14711471
c.assistTime.Store(assistTime)
1472-
c.endCycle(elapsed, gomaxprocs, false)
1472+
c.endCycle(elapsed, gomaxprocs)
14731473
c.resetLive(bytesMarked)
14741474
c.commit(false)
14751475
}

src/runtime/mgc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ top:
11671167
// endCycle depends on all gcWork cache stats being flushed.
11681168
// The termination algorithm above ensured that up to
11691169
// allocations since the ragged barrier.
1170-
gcController.endCycle(now, int(gomaxprocs), work.userForced)
1170+
gcController.endCycle(now, int(gomaxprocs))
11711171

11721172
// Perform mark termination. This will restart the world.
11731173
gcMarkTermination(stw)

src/runtime/mgcpacer.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,7 @@ func (c *gcControllerState) revise() {
595595
}
596596

597597
// endCycle computes the consMark estimate for the next cycle.
598-
// userForced indicates whether the current GC cycle was forced
599-
// by the application.
600-
func (c *gcControllerState) endCycle(now int64, procs int, userForced bool) {
598+
func (c *gcControllerState) endCycle(now int64, procs int) {
601599
// Record last heap goal for the scavenger.
602600
// We'll be updating the heap goal soon.
603601
gcController.lastHeapGoal = c.heapGoal()

0 commit comments

Comments
 (0)