From: Leonard Wang Date: Fri, 9 Apr 2021 15:56:44 +0000 (+0800) Subject: runtime: fix formatting of gcMark X-Git-Tag: go1.17beta1~663 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e224787fef;p=gostls13.git runtime: fix formatting of gcMark Change-Id: I08aed75f3aab0da705544665e532f332adfb075e Reviewed-on: https://go-review.googlesource.com/c/go/+/308949 Reviewed-by: Austin Clements Run-TryBot: Austin Clements Trust: David Chase --- diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 4750a74bc7..e68e9bb75b 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -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 {