]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix formatting of gcMark
authorLeonard Wang <wangdeyu0907@gmail.com>
Fri, 9 Apr 2021 15:56:44 +0000 (23:56 +0800)
committerAustin Clements <austin@google.com>
Wed, 14 Apr 2021 13:21:14 +0000 (13:21 +0000)
Change-Id: I08aed75f3aab0da705544665e532f332adfb075e
Reviewed-on: https://go-review.googlesource.com/c/go/+/308949
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Trust: David Chase <drchase@google.com>

src/runtime/mgc.go

index 4750a74bc787206da958f4c5c0a71f0b1ce87a08..e68e9bb75b368210766d2f5c13071b0dfefab82e 100644 (file)
@@ -1357,7 +1357,7 @@ func gcMarkWorkAvailable(p *p) bool {
 // gcMark runs the mark (or, for concurrent GC, mark termination)
 // All gcWork caches must be empty.
 // STW is in effect at this point.
-func gcMark(start_time int64) {
+func gcMark(startTime int64) {
        if debug.allocfreetrace > 0 {
                tracegc()
        }
@@ -1365,7 +1365,7 @@ func gcMark(start_time int64) {
        if gcphase != _GCmarktermination {
                throw("in gcMark expecting to see gcphase as _GCmarktermination")
        }
-       work.tstart = start_time
+       work.tstart = startTime
 
        // Check that there's no marking work remaining.
        if work.full != 0 || work.markrootNext < work.markrootJobs {