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

Issue 77900043: code review 77900043: strings, bytes: ReadAt should not mutate receiver (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by ruiu
Modified:
11 years, 2 months ago
Reviewers:
gobot, bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

strings, bytes: ReadAt should not mutate receiver CL 77580046 caused a data race issue with tests that assumes ReadAt does not mutate receiver. This patch partially revert CL 77580046 to fix it.

Patch Set 1 #

Patch Set 2 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 3 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 4 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Total comments: 1

Patch Set 5 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 6 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -4 lines) Patch
M src/pkg/bytes/reader.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/bytes/reader_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/strings/reader.go View 1 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/strings/strings_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9
ruiu
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 2 months ago (2014-03-19 18:58:54 UTC) #1
bradfitz
https://codereview.appspot.com/77900043/diff/60001/src/pkg/bytes/reader.go File src/pkg/bytes/reader.go (right): https://codereview.appspot.com/77900043/diff/60001/src/pkg/bytes/reader.go#newcode94 src/pkg/bytes/reader.go:94: // the buffer that affect the seek offset was ...
11 years, 2 months ago (2014-03-19 19:01:51 UTC) #2
ruiu
Hello golang-codereviews@googlegroups.com, bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 2 months ago (2014-03-19 19:03:57 UTC) #3
ruiu
I verified "go test -race archive/zip" now passed locally. On Wed, Mar 19, 2014 at ...
11 years, 2 months ago (2014-03-19 19:06:19 UTC) #4
bradfitz
LGTM Thanks
11 years, 2 months ago (2014-03-19 19:12:42 UTC) #5
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=fcfdb8a7aa64 *** strings, bytes: ReadAt should not mutate receiver CL 77580046 caused ...
11 years, 2 months ago (2014-03-19 19:13:49 UTC) #6
gobot
This CL appears to have broken the netbsd-amd64-bsiegert builder. See http://build.golang.org/log/c3b65be158bdf0691b025d9552a8e6a71d49d5c1
11 years, 2 months ago (2014-03-19 19:26:52 UTC) #7
ruiu
TestOverflowSleep in time/sleep_test.go seems too freaky on NetBSD. It has already raised false alarms for ...
11 years, 2 months ago (2014-03-19 19:36:46 UTC) #8
bradfitz
11 years, 2 months ago (2014-03-19 20:02:44 UTC) #9
Disabling it hides the problem

Fixing it is what these three months are for.
 On Mar 19, 2014 12:36 PM, "Rui Ueyama" <ruiu@google.com> wrote:

> TestOverflowSleep in time/sleep_test.go seems too freaky on NetBSD. It has
> already raised false alarms for my commits (I believe) two times. Can we
> fix it or disable it on NetBSD?
>
>
> On Wed, Mar 19, 2014 at 12:26 PM, <gobot@golang.org> wrote:
>
>> This CL appears to have broken the netbsd-amd64-bsiegert builder.
>> See http://build.golang.org/log/c3b65be158bdf0691b025d9552a8e6a71d49d5c1
>>
>> https://codereview.appspot.com/77900043/
>>
>
>
Sign in to reply to this message.

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