]> Cypherpunks repositories - gostls13.git/commit
runtime: reorder race detector calls in slicecopy
authorKeith Randall <khr@golang.org>
Sun, 16 Feb 2020 03:23:07 +0000 (19:23 -0800)
committerKeith Randall <khr@golang.org>
Tue, 25 Feb 2020 23:41:03 +0000 (23:41 +0000)
commit089e482b3dd2026178c8ee5b90d9aadb6bf81239
tree744166f39c5e64ddf74079b52d49294f4f00494c
parent0652c80e2afa14d62067be567c498c83a6485fd8
runtime: reorder race detector calls in slicecopy

In rare circumstances, this helps report a race which would
otherwise go undetected.

Fixes #36794

Change-Id: I8a3c9bd6fc34efa51516393f7ee72531c34fb073
Reviewed-on: https://go-review.googlesource.com/c/go/+/220685
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/race/testdata/slice_test.go
src/runtime/slice.go