diff options
author | Leonard Wang <wangdeyu0907@gmail.com> | 2021-04-09 23:56:44 +0800 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2021-04-14 13:21:14 +0000 |
commit | e224787fef3227587aceddbe21a792e3102d3cfb (patch) | |
tree | b08a3e19ddc880f3fa42f10917eb7a525333d0ff /src/runtime/mgc.go | |
parent | 82e4a6310b78290cb55be6e6e5d0e274aa004faf (diff) | |
download | go-e224787fef3227587aceddbe21a792e3102d3cfb.tar.gz go-e224787fef3227587aceddbe21a792e3102d3cfb.zip |
runtime: fix formatting of gcMark
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>
Diffstat (limited to 'src/runtime/mgc.go')
-rw-r--r-- | src/runtime/mgc.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |