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

Issue 7103046: code review 7103046: time: fix race (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by bradfitz
Modified:
11 years, 3 months ago
Reviewers:
CC:
golang-dev, dave_cheney.net, dvyukov
Visibility:
Public.

Description

time: fix race Fixes issue 4622

Patch Set 1 #

Patch Set 2 : diff -r 51bbb0535a60 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 51bbb0535a60 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 51bbb0535a60 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r 1b4a28e7f042 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r a447f188d3d8 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
A src/pkg/time/export_test.go View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M src/pkg/time/internal_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/time/time.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/time/time_test.go View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 20
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 3 months ago (2013-01-11 22:21:21 UTC) #1
bradfitz
whoops, fixing the transpose. Tested by hand. Will try to write a reliable test. On ...
11 years, 3 months ago (2013-01-11 22:23:10 UTC) #2
dave_cheney.net
Hi Brad, this didn't pass the test included with the error report on my machine. ...
11 years, 3 months ago (2013-01-11 22:30:40 UTC) #3
bradfitz
On Fri, Jan 11, 2013 at 2:30 PM, <dave@cheney.net> wrote: > Hi Brad, this didn't ...
11 years, 3 months ago (2013-01-11 22:34:59 UTC) #4
bradfitz
Hello golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-11 22:40:43 UTC) #5
bradfitz
PTAL This now has a test which fails under test -race without the fix and ...
11 years, 3 months ago (2013-01-11 22:42:26 UTC) #6
dave_cheney.net
Thanks Brad, but now another test fails to pass under the race detector lucky(~/go/src/pkg/time) % ...
11 years, 3 months ago (2013-01-11 22:43:49 UTC) #7
bradfitz
On Fri, Jan 11, 2013 at 2:43 PM, <dave@cheney.net> wrote: > Thanks Brad, but now ...
11 years, 3 months ago (2013-01-11 22:53:56 UTC) #8
bradfitz
On Fri, Jan 11, 2013 at 2:53 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > > > On ...
11 years, 3 months ago (2013-01-11 23:00:03 UTC) #9
dave_cheney.net
Maybe my machine is screwed. The -race builder is the ultimate arbiter, thanks for adding ...
11 years, 3 months ago (2013-01-11 23:05:29 UTC) #10
bradfitz
Is your machine still having an error on the tests? Does it without my patch? ...
11 years, 3 months ago (2013-01-12 17:18:53 UTC) #11
dave_cheney.net
I think the problem is your machine may be native to PST, so resetting the ...
11 years, 3 months ago (2013-01-13 04:51:51 UTC) #12
dave_cheney.net
Hi Brad, Sorry this is still failing for me so I don't think I can ...
11 years, 3 months ago (2013-01-14 00:18:03 UTC) #13
bradfitz
On Sat, Jan 12, 2013 at 8:51 PM, Dave Cheney <dave@cheney.net> wrote: > I think ...
11 years, 3 months ago (2013-01-14 00:18:34 UTC) #14
bradfitz
Hello golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-14 00:18:49 UTC) #15
dave_cheney.net
LGTM, but please wait for Dmitry Thank you for fixing the race. I have a ...
11 years, 3 months ago (2013-01-14 10:12:10 UTC) #16
bradfitz
On Mon, Jan 14, 2013 at 2:12 AM, <dave@cheney.net> wrote: > LGTM, but please wait ...
11 years, 3 months ago (2013-01-14 17:09:37 UTC) #17
dvyukov
If the issue was that the code path skip "localOnce.Do(initLocal)", then LGTM.
11 years, 3 months ago (2013-01-14 17:22:01 UTC) #18
bradfitz
It called it, but too late. It first accessed some cache fields from localLoc and ...
11 years, 3 months ago (2013-01-14 17:55:51 UTC) #19
bradfitz
11 years, 3 months ago (2013-01-14 22:09:47 UTC) #20
*** Submitted as https://code.google.com/p/go/source/detail?r=39a404853d24 ***

time: fix race

Fixes issue 4622

R=golang-dev, dave, dvyukov
CC=golang-dev
https://codereview.appspot.com/7103046
Sign in to reply to this message.

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