]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: delete unused parameter of userForced
authorTony Tang <jianfengtony@163.com>
Sun, 7 Dec 2025 01:02:32 +0000 (01:02 +0000)
committerKeith Randall <khr@golang.org>
Sat, 31 Jan 2026 02:35:34 +0000 (18:35 -0800)
delete unused parameter userForced

Change-Id: I71c26ab5e3fadc532b6b1f266212c6f620769efd
GitHub-Last-Rev: 6a32c8ff6e63f8b149c0803e8b6636022bd9d066
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>
src/runtime/export_test.go
src/runtime/mgc.go
src/runtime/mgcpacer.go

index fb0bfd3904a9cdabc100a7fbdd247360e1a60d60..72f5c96564f0c1d4726d401819f27cb93f5f7bd3 100644 (file)
@@ -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)
 }
index a3bed4b3eb62f990c4d5581d484a944a8b0b5263..b8f99d1ed448d5a4e51c2754d7a46c5937d23d99 100644 (file)
@@ -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)
index 388cce83cd2388a7f2a54e515218e275cf635578..b62f6404a5827affd4935382f743c226c174b02b 100644 (file)
@@ -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()