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

Issue 132440043: code review 132440043: runtime: convert cpuprof from C to Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by mdempsky
Modified:
10 years, 6 months ago
Reviewers:
gobot, rsc, dave, dvyukov
CC:
golang-codereviews, dvyukov, rsc
Visibility:
Public.

Description

runtime: convert cpuprof from C to Go

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r 25ae16c918f65ca0e0039d74109aaeefa716d987 https://code.google.com/p/go #

Total comments: 21

Patch Set 7 : diff -r 25ae16c918f65ca0e0039d74109aaeefa716d987 https://code.google.com/p/go #

Patch Set 8 : diff -r 25ae16c918f65ca0e0039d74109aaeefa716d987 https://code.google.com/p/go #

Patch Set 9 : diff -r 25ae16c918f65ca0e0039d74109aaeefa716d987 https://code.google.com/p/go #

Patch Set 10 : diff -r 25ae16c918f65ca0e0039d74109aaeefa716d987 https://code.google.com/p/go #

Total comments: 5

Patch Set 11 : diff -r e5c87cefb57fffc5767209542be5c4e58123e3c6 https://code.google.com/p/go #

Total comments: 16

Patch Set 12 : diff -r e5c87cefb57fffc5767209542be5c4e58123e3c6 https://code.google.com/p/go #

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

Total comments: 2

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

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

Patch Set 16 : diff -r 6aabcc1ffb70dbe0cca91f8f46176a26012ba2e9 https://code.google.com/p/go #

Patch Set 17 : diff -r 6aabcc1ffb70dbe0cca91f8f46176a26012ba2e9 https://code.google.com/p/go #

Total comments: 2

Patch Set 18 : diff -r 17b5fc2aa130ef7c32cbbdf95620862610d7773e https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -309 lines) Patch
M src/pkg/runtime/cpuprof.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +269 lines, -278 lines 0 comments Download
M src/pkg/runtime/debug.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -19 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +6 lines, -11 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26
mdempsky
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 6 months ago (2014-08-29 18:07:24 UTC) #1
dvyukov
https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go#newcode62 src/pkg/runtime/cpuprof.go:62: type entry struct { these are not runtime-global, give ...
10 years, 6 months ago (2014-08-29 18:59:14 UTC) #2
mdempsky
https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go#newcode62 src/pkg/runtime/cpuprof.go:62: type entry struct { On 2014/08/29 18:59:14, dvyukov wrote: ...
10 years, 6 months ago (2014-08-29 19:37:47 UTC) #3
mdempsky
https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go#newcode197 src/pkg/runtime/cpuprof.go:197: h += (x*4+x)*8 + x N.B., I've changed this ...
10 years, 6 months ago (2014-08-29 21:25:37 UTC) #4
dvyukov
LGTM https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/100001/src/pkg/runtime/cpuprof.go#newcode97 src/pkg/runtime/cpuprof.go:97: var cpuprofLock mutex On 2014/08/29 19:37:47, mdempsky wrote: ...
10 years, 6 months ago (2014-08-30 04:20:44 UTC) #5
mdempsky
https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/proc.c#newcode2538 src/pkg/runtime/proc.c:2538: if(prof.hz != 0) { On 2014/08/30 04:20:44, dvyukov wrote: ...
10 years, 6 months ago (2014-08-30 04:22:18 UTC) #6
rsc
https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go#newcode197 src/pkg/runtime/cpuprof.go:197: h += (x*4+x)*8 + x This CL should only ...
10 years, 6 months ago (2014-08-30 04:33:22 UTC) #7
mdempsky
https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/180001/src/pkg/runtime/cpuprof.go#newcode197 src/pkg/runtime/cpuprof.go:197: h += (x*4+x)*8 + x On 2014/08/30 04:33:21, rsc ...
10 years, 6 months ago (2014-08-30 04:37:29 UTC) #8
rsc
looks pretty good. bunch of small things. https://codereview.appspot.com/132440043/diff/200001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/200001/src/pkg/runtime/cpuprof.go#newcode130 src/pkg/runtime/cpuprof.go:130: cpuprof = ...
10 years, 6 months ago (2014-08-30 04:50:20 UTC) #9
mdempsky
On 2014/08/30 04:50:20, rsc wrote: > looks pretty good. Thanks. https://codereview.appspot.com/132440043/diff/200001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/200001/src/pkg/runtime/cpuprof.go#newcode130 ...
10 years, 6 months ago (2014-08-30 05:53:18 UTC) #10
dvyukov
https://codereview.appspot.com/132440043/diff/240001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/132440043/diff/240001/src/pkg/runtime/proc.c#newcode2537 src/pkg/runtime/proc.c:2537: runtime·cpuproftick(stk, n); On 2014/08/30 05:53:17, mdempsky wrote: > Just ...
10 years, 6 months ago (2014-08-30 06:15:54 UTC) #11
mdempsky
On 2014/08/30 05:53:18, mdempsky wrote: > Just to confirm: it's okay to call into Go ...
10 years, 6 months ago (2014-08-30 06:16:03 UTC) #12
mdempsky
On 2014/08/30 06:16:03, mdempsky wrote: > Possibly related, I just noticed this on linux/amd64: > ...
10 years, 6 months ago (2014-08-30 06:52:52 UTC) #13
dvyukov
On 2014/08/30 06:52:52, mdempsky wrote: > On 2014/08/30 06:16:03, mdempsky wrote: > > Possibly related, ...
10 years, 6 months ago (2014-08-30 07:01:56 UTC) #14
mdempsky
On 2014/08/30 07:01:56, dvyukov wrote: > You conclusions look right. I guess you need to ...
10 years, 6 months ago (2014-08-30 07:08:34 UTC) #15
dvyukov
On Sat, Aug 30, 2014 at 11:08 AM, <mdempsky@google.com> wrote: > On 2014/08/30 07:01:56, dvyukov ...
10 years, 6 months ago (2014-08-30 07:22:31 UTC) #16
mdempsky
On Sat, Aug 30, 2014 at 12:22 AM, Dmitry Vyukov <dvyukov@google.com> wrote: > Does -race ...
10 years, 6 months ago (2014-08-30 07:25:42 UTC) #17
rsc
The failure in tsan_func_enter was not a bug in your code. It was a bug ...
10 years, 6 months ago (2014-09-02 03:50:01 UTC) #18
rsc
LGTM https://codereview.appspot.com/132440043/diff/320001/src/pkg/runtime/cpuprof.go File src/pkg/runtime/cpuprof.go (right): https://codereview.appspot.com/132440043/diff/320001/src/pkg/runtime/cpuprof.go#newcode242 src/pkg/runtime/cpuprof.go:242: for i := range pc { use copy ...
10 years, 6 months ago (2014-09-02 03:57:18 UTC) #19
mdempsky
On Mon, Sep 1, 2014 at 8:50 PM, <rsc@golang.org> wrote: > The failure in tsan_func_enter ...
10 years, 6 months ago (2014-09-02 04:09:28 UTC) #20
rsc
Okay, leave the copy out and we can leave this for Dmitriy to fix. I ...
10 years, 6 months ago (2014-09-02 04:13:15 UTC) #21
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=bc9245d02338 *** runtime: convert cpuprof from C to Go LGTM=dvyukov, rsc R=golang-codereviews, ...
10 years, 6 months ago (2014-09-02 04:14:23 UTC) #22
gobot
This CL appears to have broken the windows-amd64 builder. See http://build.golang.org/log/5c8913d5e81b95c3ee4b03ad36fb3229414b0737
10 years, 6 months ago (2014-09-02 04:22:27 UTC) #23
mdempsky
On Mon, Sep 1, 2014 at 9:13 PM, Russ Cox <rsc@golang.org> wrote: > Okay, leave ...
10 years, 6 months ago (2014-09-02 04:22:44 UTC) #24
mdempsky
On Mon, Sep 1, 2014 at 9:22 PM, <gobot@golang.org> wrote: > This CL appears to ...
10 years, 6 months ago (2014-09-02 04:26:16 UTC) #25
dave_cheney.net
10 years, 6 months ago (2014-09-02 11:10:18 UTC) #26
Something is really screwed with timers on windows.

On Tue, Sep 2, 2014 at 2:25 PM, 'Matthew Dempsky' via
golang-codereviews <golang-codereviews@googlegroups.com> wrote:
> On Mon, Sep 1, 2014 at 9:22 PM, <gobot@golang.org> wrote:
>>
>> This CL appears to have broken the windows-amd64 builder.
>> See http://build.golang.org/log/5c8913d5e81b95c3ee4b03ad36fb3229414b0737
>
>
> Looks like an unrelated flake.
>
> --- FAIL: TestReset (2.08s)
> 	sleep_test.go:360: resetting unfired timer returned false
> FAIL
> FAIL	time	6.695s
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Sign in to reply to this message.

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