diff options
author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-04-01 19:09:40 +0000 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2021-04-14 14:03:55 +0000 |
commit | e9cc31e736a6a1931ab010a2fda0e5d0ac4e5127 (patch) | |
tree | c98ef9401abf63bbd8011f9dd2dc6c280f3dba3b /src/runtime/mgc.go | |
parent | 3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130 (diff) | |
download | go-e9cc31e736a6a1931ab010a2fda0e5d0ac4e5127.tar.gz go-e9cc31e736a6a1931ab010a2fda0e5d0ac4e5127.zip |
runtime: pass work.userForced to gcController.endCycle explicitly
For #44167.
Change-Id: I15817006f1870d6237cd06dabad988da3f23a6d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/306604
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/mgc.go')
-rw-r--r-- | src/runtime/mgc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index bb98cf29bc..e4bbf1f016 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -898,7 +898,7 @@ top: // endCycle depends on all gcWork cache stats being flushed. // The termination algorithm above ensured that up to // allocations since the ragged barrier. - nextTriggerRatio := gcController.endCycle() + nextTriggerRatio := gcController.endCycle(work.userForced) // Perform mark termination. This will restart the world. gcMarkTermination(nextTriggerRatio) |