Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(239)

Issue 6208057: code review 6208057: sync: use atomic.Store in Once.Do (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by dvyukov
Modified:
12 years, 10 months ago
Reviewers:
CC:
golang-dev, r
Visibility:
Public.

Description

sync: use atomic.Store in Once.Do No perf/semantic changes, merely improves code health. There were several questions as to why Once.Do uses atomic.CompareAndSwap to do a store.

Patch Set 1 #

Patch Set 2 : diff -r 3b1efbd100bb https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 3b1efbd100bb https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 3b1efbd100bb https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/pkg/sync/once.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 10 months ago (2012-05-14 14:53:04 UTC) #1
r
LGTM
12 years, 10 months ago (2012-05-14 15:02:24 UTC) #2
dvyukov
12 years, 10 months ago (2012-05-14 15:27:58 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=9184ffa5fa13 ***

sync: use atomic.Store in Once.Do
No perf/semantic changes, merely improves code health.
There were several questions as to why Once.Do uses
atomic.CompareAndSwap to do a store.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6208057
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b