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

Issue 116290043: code review 116290043: runtime/pprof: fix data race (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by dvyukov
Modified:
9 years, 9 months ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

runtime/pprof: fix data race It's unclear why we do this broken double-checked locking. The mutex is not held for the whole duration of CPU profiling. Fixes issue 8365.

Patch Set 1 #

Patch Set 2 : diff -r b6a42b0aeef6 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r b6a42b0aeef6 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r e0bf1fc9dd8ed6029e45c9941d3f8dcce5ac9c8e https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -6 lines) Patch
M src/pkg/runtime/pprof/pprof.go View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 5
dvyukov
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
9 years, 10 months ago (2014-07-25 11:47:02 UTC) #1
dvyukov
On 2014/07/25 11:47:02, dvyukov wrote: > Hello mailto:golang-codereviews@googlegroups.com, > > I'd like you to review ...
9 years, 9 months ago (2014-08-05 17:13:14 UTC) #2
dvyukov
ping
9 years, 9 months ago (2014-08-12 20:35:29 UTC) #3
bradfitz
LGTM
9 years, 9 months ago (2014-08-12 20:36:29 UTC) #4
dvyukov
9 years, 9 months ago (2014-08-12 21:02:09 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=5d9094d9b134 ***

runtime/pprof: fix data race
It's unclear why we do this broken double-checked locking.
The mutex is not held for the whole duration of CPU profiling.
Fixes issue 8365.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/116290043
Sign in to reply to this message.

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