Skip to content

Commit

Permalink
runtime: fix formatting of gcMark
Browse files Browse the repository at this point in the history
Change-Id: I08aed75f3aab0da705544665e532f332adfb075e
Reviewed-on: https://go-review.googlesource.com/c/go/+/308949
Reviewed-by: Austin Clements <[email protected]>
Run-TryBot: Austin Clements <[email protected]>
Trust: David Chase <[email protected]>
  • Loading branch information
WangLeonard authored and aclements committed Apr 14, 2021
1 parent 82e4a63 commit e224787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/mgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,15 +1357,15 @@ 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()
}

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 {
Expand Down

0 comments on commit e224787

Please sign in to comment.