diff options
author | Cherry Zhang <cherryyz@google.com> | 2019-12-27 12:02:50 -0500 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-01-06 18:32:21 +0000 |
commit | d6bf2d7b83b91e88625f838515885003c570ac83 (patch) | |
tree | f8e2ac55b2023b913e8f661f5ee21e5619633f3c /src/runtime/export_test.go | |
parent | 822094f04756b31344c0533eb0e390464e1cbf5b (diff) | |
download | go-d6bf2d7b83b91e88625f838515885003c570ac83.tar.gz go-d6bf2d7b83b91e88625f838515885003c570ac83.zip |
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>
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r-- | src/runtime/export_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index ce9c6a0ba7..1f5533c90e 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -45,6 +45,9 @@ var NetpollGenericInit = netpollGenericInit var ParseRelease = parseRelease +var Memmove = memmove +var MemclrNoHeapPointers = memclrNoHeapPointers + const PreemptMSupported = preemptMSupported type LFNode struct { |