]> Cypherpunks repositories - gostls13.git/commit
runtime: consolidate gcResetGState calls
authorAustin Clements <austin@google.com>
Sun, 18 Oct 2015 03:52:49 +0000 (23:52 -0400)
committerAustin Clements <austin@google.com>
Mon, 19 Oct 2015 18:38:00 +0000 (18:38 +0000)
commitb0d5e5c5001f6c9e2a0c12bb8e33883710126974
tree4639e89f2b2a854ec33a67db6dc45414d43b9199
parentfeb92a8e8cadcd79e24d3caeab64149eb096363f
runtime: consolidate gcResetGState calls

Currently gcResetGState is called by func gcscan_m for concurrent GC
and directly by func gc for STW GC. Simplify this by consolidating
these two calls in to one call by func gc above where it splits for
concurrent and STW GC.

As a consequence, gcResetGState and gcResetMarkState are always called
together, so the next commit will consolidate these.

Change-Id: Ib62d404c7b32b28f7d3080d26ecf3966cbc4aca0
Reviewed-on: https://go-review.googlesource.com/16040
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mgcmark.go