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

Issue 7986043: code review 7986043: cmd/gc: instrument logical && and ||. (Closed)

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

Description

cmd/gc: instrument logical && and ||. The right operand of a && and || is only executed conditionnally, so the instrumentation must be more careful. In particular it should not turn nodes assumed to be cheap after walk into expensive ones. Update issue 4228

Patch Set 1 #

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

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -9 lines) Patch
M src/cmd/gc/racewalk.c View 1 2 3 5 chunks +36 lines, -5 lines 0 comments Download
M src/cmd/gc/subr.c View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/race/testdata/mop_test.go View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 8
remyoudompheng
Hello dvyukov@google.com, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2013-03-23 08:36:14 UTC) #1
dvyukov
LGTM Thanks! Do you see any new races with this? When I've experimented with && ...
12 years ago (2013-03-24 12:49:08 UTC) #2
remyoudompheng
2013/3/24 <dvyukov@google.com>: > LGTM > Thanks! > Do you see any new races with this? ...
12 years ago (2013-03-24 13:12:53 UTC) #3
remyoudompheng
On 2013/03/24 13:12:53, remyoudompheng wrote: > I had a strange lockup in net/http benchmark when ...
12 years ago (2013-03-25 00:24:15 UTC) #4
remyoudompheng
Hello dvyukov@google.com, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-03-25 07:39:02 UTC) #5
remyoudompheng
After fixing the benchmark net/http seems no longer flaky. https://codereview.appspot.com/7986043/diff/5001/src/cmd/gc/racewalk.c File src/cmd/gc/racewalk.c (right): https://codereview.appspot.com/7986043/diff/5001/src/cmd/gc/racewalk.c#newcode584 src/cmd/gc/racewalk.c:584: ...
12 years ago (2013-03-25 07:42:06 UTC) #6
dvyukov
LGTM
12 years ago (2013-03-25 13:42:28 UTC) #7
remyoudompheng
12 years ago (2013-03-25 21:13:00 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=d6a4fe5af6aa ***

cmd/gc: instrument logical && and ||.

The right operand of a && and || is only executed conditionnally,
so the instrumentation must be more careful. In particular
it should not turn nodes assumed to be cheap after walk into
expensive ones.

Update issue 4228

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

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