File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,6 @@ func GC() {
476
476
// as part of tests and benchmarks to get the system into a
477
477
// relatively stable and isolated state.
478
478
for work .cycles .Load () == n + 1 && sweepone () != ^ uintptr (0 ) {
479
- sweep .nbgsweep ++
480
479
Gosched ()
481
480
}
482
481
@@ -620,7 +619,6 @@ func gcStart(trigger gcTrigger) {
620
619
// We check the transition condition continuously here in case
621
620
// this G gets delayed in to the next GC cycle.
622
621
for trigger .test () && sweepone () != ^ uintptr (0 ) {
623
- sweep .nbgsweep ++
624
622
}
625
623
626
624
// Perform GC initialization and the sweep termination
@@ -1047,10 +1045,6 @@ func gcMarkTermination() {
1047
1045
// Reset idle time stat.
1048
1046
sched .idleTime .Store (0 )
1049
1047
1050
- // Reset sweep state.
1051
- sweep .nbgsweep = 0
1052
- sweep .npausesweep = 0
1053
-
1054
1048
if work .userForced {
1055
1049
memstats .numforcedgc ++
1056
1050
}
@@ -1589,7 +1583,6 @@ func gcSweep(mode gcMode) bool {
1589
1583
}
1590
1584
// Sweep all spans eagerly.
1591
1585
for sweepone () != ^ uintptr (0 ) {
1592
- sweep .npausesweep ++
1593
1586
}
1594
1587
// Free workbufs eagerly.
1595
1588
prepareFreeWorkbufs ()
Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ type sweepdata struct {
37
37
g * g
38
38
parked bool
39
39
40
- nbgsweep uint32
41
- npausesweep uint32
42
-
43
40
// active tracks outstanding sweepers and the sweep
44
41
// termination condition.
45
42
active activeSweep
@@ -237,7 +234,6 @@ func finishsweep_m() {
237
234
// instantly. If GC was forced before the concurrent sweep
238
235
// finished, there may be spans to sweep.
239
236
for sweepone () != ^ uintptr (0 ) {
240
- sweep .npausesweep ++
241
237
}
242
238
243
239
// Make sure there aren't any outstanding sweepers left.
@@ -299,7 +295,6 @@ func bgsweep(c chan int) {
299
295
const sweepBatchSize = 10
300
296
nSwept := 0
301
297
for sweepone () != ^ uintptr (0 ) {
302
- sweep .nbgsweep ++
303
298
nSwept ++
304
299
if nSwept % sweepBatchSize == 0 {
305
300
goschedIfBusy ()
You can’t perform that action at this time.
0 commit comments