aboutsummaryrefslogtreecommitdiff
path: root/test/inline_sync.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-09-07 01:14:31 +0000
committerGopher Robot <gobot@golang.org>2022-09-07 13:22:04 +0000
commitb53471a655f3928d2d0a851b1fb5f7ebb02adc76 (patch)
tree207757df456374f8ff08f85f37be1004c4850c81 /test/inline_sync.go
parented530dbd077c8dbf680fabb1fb10da5239099e25 (diff)
downloadgo-b53471a655f3928d2d0a851b1fb5f7ebb02adc76.tar.gz
go-b53471a655f3928d2d0a851b1fb5f7ebb02adc76.zip
Revert "sync: convert Once.done to atomic type"
This reverts commit CL 427140. Reason for revert: Comments say that done should be the first field. Change-Id: Id131da064146b44e1182289546aeb877867e63cc Reviewed-on: https://go-review.googlesource.com/c/go/+/428638 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'test/inline_sync.go')
-rw-r--r--test/inline_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/inline_sync.go b/test/inline_sync.go
index d1ce5f521c..30b436af41 100644
--- a/test/inline_sync.go
+++ b/test/inline_sync.go
@@ -36,7 +36,7 @@ var once *sync.Once
func small7() { // ERROR "can inline small7"
// the Do fast path should be inlined
- once.Do(small5) // ERROR "(inlining call to sync\.\(\*Once\)\.Do|inlining call to atomic\.\(\*Bool\)\.Load)"
+ once.Do(small5) // ERROR "inlining call to sync\.\(\*Once\)\.Do"
}
var rwmutex *sync.RWMutex