aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcscavenge.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mgcscavenge.go')
-rw-r--r--src/runtime/mgcscavenge.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/mgcscavenge.go b/src/runtime/mgcscavenge.go
index dede4a1ad3..8102940a7c 100644
--- a/src/runtime/mgcscavenge.go
+++ b/src/runtime/mgcscavenge.go
@@ -281,15 +281,19 @@ type scavengerState struct {
// g is the goroutine the scavenger is bound to.
g *g
- // parked is whether or not the scavenger is parked.
- parked bool
-
// timer is the timer used for the scavenger to sleep.
timer *timer
// sysmonWake signals to sysmon that it should wake the scavenger.
sysmonWake atomic.Uint32
+ // parked is whether or not the scavenger is parked.
+ parked bool
+
+ // printControllerReset instructs printScavTrace to signal that
+ // the controller was reset.
+ printControllerReset bool
+
// targetCPUFraction is the target CPU overhead for the scavenger.
targetCPUFraction float64
@@ -312,10 +316,6 @@ type scavengerState struct {
// value. Used if the controller's assumptions fail to hold.
controllerCooldown int64
- // printControllerReset instructs printScavTrace to signal that
- // the controller was reset.
- printControllerReset bool
-
// sleepStub is a stub used for testing to avoid actually having
// the scavenger sleep.
//