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

Issue 7780044: code review 7780044: cmd/gc: silence valgrind error (Closed)

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

Description

cmd/gc: silence valgrind error valgrind complained that under some circumstances, *nr = *nc was being called when nr and nc were the same *Node. The suggestion my Rémy was to introduce a tmp node to avoid the potential for aliasing in subnode.

Patch Set 1 #

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/cmd/gc/cplx.c View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5
dave_cheney.net
Hello remyoudompheng@gmail.com, minux.ma@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 2 months ago (2013-03-13 10:58:52 UTC) #1
dave_cheney.net
The original valgrind report. ==2499== Memcheck, a memory error detector ==2499== Copyright (C) 2002-2011, and ...
12 years, 2 months ago (2013-03-13 10:59:42 UTC) #2
rsc
LGTM Thank you. I have yet to see a valgrind report that was a false ...
12 years, 2 months ago (2013-03-13 16:48:29 UTC) #3
dave_cheney.net
Excellent, thank you. I'm working through all the permutations of {5,6,8}{a,c,g,l}. On 14/03/2013, at 3:48 ...
12 years, 2 months ago (2013-03-13 19:42:14 UTC) #4
dave_cheney.net
12 years, 2 months ago (2013-03-13 20:11:26 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=28dbe614d61c ***

cmd/gc: silence valgrind error

valgrind complained that under some circumstances, 

    *nr = *nc

was being called when nr and nc were the same *Node. The suggestion my Rémy was
to introduce a tmp node to avoid the potential for aliasing in subnode.

R=remyoudompheng, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7780044
Sign in to reply to this message.

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