]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate unnecessary ragged barrier
authorAustin Clements <austin@google.com>
Sun, 18 Oct 2015 15:53:18 +0000 (11:53 -0400)
committerAustin Clements <austin@google.com>
Wed, 21 Oct 2015 16:26:25 +0000 (16:26 +0000)
commit28f458ce5b5ea5649afdc60c143cc54d6ea3d179
tree97c5c91b901060e78de808a9bd5bf4f25dac9da5
parent0c69f1303f3dbd4515f1cab0602aaafc3364a946
runtime: eliminate unnecessary ragged barrier

The ragged barrier after entering the concurrent mark phase is
vestigial. This used to be the point where we enabled write barriers,
so it was necessary to synchronize all Ps to ensure write barriers
were enabled before any marking occurred. However, we've long since
switched to enabling write barriers during the concurrent scan phase,
so the start-the-world at the beginning of the concurrent scan phase
ensures that all Ps have enabled the write barrier.

Hence, we can eliminate the old "install write barrier" phase.

Fixes #11971.

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