]> Cypherpunks repositories - gostls13.git/commit
runtime: implement unconditional hybrid barrier
authorAustin Clements <austin@google.com>
Sun, 23 Oct 2016 15:03:56 +0000 (11:03 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 21:24:02 +0000 (21:24 +0000)
commit5380b22991dfb5f3bad25cd2e29f59fd07716581
treecb0d104a0c849385c994f50195b36f41cd774d2f
parentee3d20129a89047ccb4a4e157688d2f24db8f343
runtime: implement unconditional hybrid barrier

This implements the unconditional version of the hybrid deletion write
barrier, which always shades both the old and new pointer. It's
unconditional for now because barriers on channel operations require
checking both the source and destination stacks and we don't have a
way to funnel this information into the write barrier at the moment.

As part of this change, we modify the typed memclr operations
introduced earlier to invoke the write barrier.

This has basically no overall effect on benchmark performance. This is
good, since it indicates that neither the extra shade nor the new bulk
clear barriers have much effect. It also has little effect on latency.
This is expected, since we haven't yet modified mark termination to
take advantage of the hybrid barrier.

Updates #17503.

Change-Id: Iebedf84af2f0e857bd5d3a2d525f760b5cf7224b
Reviewed-on: https://go-review.googlesource.com/31765
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mbarrier.go
src/runtime/mbitmap.go