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

Issue 41660045: code review 41660045: runtime: Fix race detector checks to ignore KindNoPoint... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by khr
Modified:
11 years, 6 months ago
Reviewers:
dave, dvyukov
CC:
dvyukov, dave_cheney.net, khr1, golang-codereviews
Visibility:
Public.

Description

runtime: Fix race detector checks to ignore KindNoPointers bit when comparing kinds.

Patch Set 1 #

Patch Set 2 : diff -r c344ec9f4318 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r c344ec9f4318 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r c344ec9f4318 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r c344ec9f4318 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 6 : diff -r 76ba983c4f3d https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -36 lines) Patch
M src/pkg/runtime/hashmap.c View 1 2 3 7 chunks +9 lines, -36 lines 0 comments Download
M src/pkg/runtime/race.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/race.c View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 7
khr
Hello dvyukov@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
11 years, 6 months ago (2013-12-31 18:25:57 UTC) #1
dave_cheney.net
Thanks for the quick fix. How about this to avoid introducing a new local variable? ...
11 years, 6 months ago (2013-12-31 21:47:16 UTC) #2
dvyukov
https://codereview.appspot.com/41660045/diff/40001/src/pkg/runtime/hashmap.c File src/pkg/runtime/hashmap.c (right): https://codereview.appspot.com/41660045/diff/40001/src/pkg/runtime/hashmap.c#newcode1003 src/pkg/runtime/hashmap.c:1003: kind = t->key->kind & ~KindNoPointers; I think now it's ...
11 years, 6 months ago (2014-01-01 11:56:43 UTC) #3
khr1
Dave, I had your version originally but it felt too verbose. I've gone Dmitry's route ...
11 years, 6 months ago (2014-01-04 05:27:37 UTC) #4
dave_cheney.net
LGTM. The Darwin race builder likes this, and so do I > On 4 Jan ...
11 years, 6 months ago (2014-01-04 05:40:56 UTC) #5
dvyukov
LGTM
11 years, 6 months ago (2014-01-04 16:29:33 UTC) #6
khr
11 years, 6 months ago (2014-01-04 16:43:25 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=06e400cf4c93 ***

runtime: Fix race detector checks to ignore KindNoPointers bit
when comparing kinds.

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

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