]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate write barriers from dropg
authorAustin Clements <austin@google.com>
Wed, 19 Oct 2016 20:00:07 +0000 (16:00 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 20:05:39 +0000 (20:05 +0000)
commit8044b77a57f9d22e0815ed1476ffa8156b622862
tree1fda13cf950650c0739540864efad5b77bf18096
parent85c22bc3a5e9ce03cd0ca668285755ce430456e0
runtime: eliminate write barriers from dropg

Currently this contains no write barriers because it's writing nil
pointers, but with the hybrid barrier, even these will produce write
barriers. However, since these are *gs and *ms, they don't need write
barriers, so we can simply eliminate them.

Updates #17503.

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