]> Cypherpunks repositories - gostls13.git/commit
runtime: test memmove writes pointers atomically
authorCherry Zhang <cherryyz@google.com>
Fri, 27 Dec 2019 17:02:50 +0000 (12:02 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 6 Jan 2020 18:32:21 +0000 (18:32 +0000)
commitd6bf2d7b83b91e88625f838515885003c570ac83
treef8e2ac55b2023b913e8f661f5ee21e5619633f3c
parent822094f04756b31344c0533eb0e390464e1cbf5b
runtime: test memmove writes pointers atomically

In the previous CL we ensures that memmove writes pointers
atomically, so the concurrent GC won't observe a partially
updated pointer. This CL adds a test.

Change-Id: Icd1124bf3a15ef25bac20c7fb8933f1a642d897c
Reviewed-on: https://go-review.googlesource.com/c/go/+/212627
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/export_test.go
src/runtime/memmove_test.go