]> Cypherpunks repositories - gostls13.git/commit
runtime: drop redundant gcBlackenEnabled reset
authorMichael Pratt <mpratt@google.com>
Tue, 7 Jul 2020 21:55:40 +0000 (17:55 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 23 Oct 2020 21:26:40 +0000 (21:26 +0000)
commitdb185e543fe471c522790b7d93291e786dc54a84
treed846eb9f98def0e0c8a21ae671dc52bc2291b3c8
parentf24ff3856a629a6b5fefe28a1676638d5f103342
runtime: drop redundant gcBlackenEnabled reset

This reset of gcBlackenEnabled is a no-op because it was already reset
almost immediately before in gcMarkDone, which is the only caller of
gcMarkTermination.

Adjust the comment to clarify setGCPhase a bit more. We are coming from
_GCmark, so write barriers are already enabled.

Change-Id: Ieac2dadf33c3c5a44e8a25a499dea8cfe03b8d73
Reviewed-on: https://go-review.googlesource.com/c/go/+/241357
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mgc.go