]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove the started field from sweepdata
authorJakub Ciolek <jakub@ciolek.dev>
Wed, 27 Jul 2022 07:02:17 +0000 (09:02 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 8 Nov 2022 21:31:58 +0000 (21:31 +0000)
This bool doesn't seem to be used anymore. Remove it.

Change-Id: Ic73346a98513c392d89482c5e1d818a90d713516
Reviewed-on: https://go-review.googlesource.com/c/go/+/419654
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/runtime/mgcsweep.go

index 6da6dbea206296ae96ff56a27d40dfddce85aa62..4b92ef938c0ebca50164324053d8e0ccbfac4372 100644 (file)
@@ -33,10 +33,9 @@ var sweep sweepdata
 
 // State of background sweep.
 type sweepdata struct {
-       lock    mutex
-       g       *g
-       parked  bool
-       started bool
+       lock   mutex
+       g      *g
+       parked bool
 
        nbgsweep    uint32
        npausesweep uint32