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

Issue 6968044: code review 6968044: go/token: fix data race on FileSet.last (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by dave
Modified:
11 years, 4 months ago
Reviewers:
CC:
dvyukov, gri, golang-dev
Visibility:
Public.

Description

go/token: fix data race on FileSet.last Fixes issue 4345. Benchmarks are promising, benchmark old ns/op new ns/op delta BenchmarkPrint 14716391 14747131 +0.21% benchmark old ns/op new ns/op delta BenchmarkParse 8846219 8809343 -0.42% benchmark old MB/s new MB/s speedup BenchmarkParse 6.61 6.64 1.00x Also includes additional tests to improve token.FileSet coverage.

Patch Set 1 #

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

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -8 lines) Patch
M src/pkg/go/token/position.go View 1 2 3 4 5 chunks +10 lines, -8 lines 0 comments Download
M src/pkg/go/token/position_test.go View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dave_cheney.net
Hello dvyukov@google.com, gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 4 months ago (2012-12-19 20:51:07 UTC) #1
gri
LGTM Thanks. A minor nitpick (addressing your concern about possible races). https://codereview.appspot.com/6968044/diff/8001/src/pkg/go/token/position.go File src/pkg/go/token/position.go (right): ...
11 years, 4 months ago (2012-12-19 21:18:47 UTC) #2
dave_cheney.net
11 years, 4 months ago (2012-12-19 21:26:56 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=0c135754c93a ***

go/token: fix data race on FileSet.last

Fixes issue 4345.

Benchmarks are promising,

benchmark         old ns/op    new ns/op    delta
BenchmarkPrint     14716391     14747131   +0.21%

benchmark         old ns/op    new ns/op    delta
BenchmarkParse      8846219      8809343   -0.42%

benchmark          old MB/s     new MB/s  speedup
BenchmarkParse         6.61         6.64    1.00x

Also includes additional tests to improve token.FileSet coverage.

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

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