]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate write barriers from save
authorAustin Clements <austin@google.com>
Wed, 19 Oct 2016 20:16:40 +0000 (16:16 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 20:05:49 +0000 (20:05 +0000)
commitc3163d23f038a595dc4dd8e1218f412a443a39fa
tree7769fed5d4db78fbf669ee212b5696128c328e18
parent8044b77a57f9d22e0815ed1476ffa8156b622862
runtime: eliminate write barriers from save

As for dropg, save is writing a nil pointer that will generate a write
barrier with the hybrid barrier. However, in this case, ctxt always
should already be nil, so replace the write with an assertion that
this is the case.

At this point, we're ready to disable the write barrier elision
optimizations that interfere with the hybrid barrier.

Updates #17503.

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