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

Issue 139930044: code review 139930044: runtime: convert type algorithms to Go (Closed)

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

Description

runtime: convert type algorithms to Go Actually it mostly deletes code -- alg.print and alg.copy go away. There was only one usage of alg.print for debug purposes. Alg.copy is used in chan.goc, but Keith replaces them with memcopy during conversion, so alg.copy is not needed as well. Converting them would be significant amount of work for no visible benefit.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2

Patch Set 7 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2

Patch Set 8 : diff -r 1041a5493f10e3c6edadc67e683f6aa6d832fd60 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -481 lines) Patch
M src/cmd/gc/reflect.c View 1 2 3 chunks +2 lines, -17 lines 0 comments Download
M src/pkg/runtime/alg.go View 1 2 3 4 5 6 7 10 chunks +114 lines, -46 lines 0 comments Download
R src/pkg/runtime/alg.goc View 1 2 1 chunk +0 lines, -289 lines 0 comments Download
M src/pkg/runtime/asm_386.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/asm_amd64p32.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/chan.goc View 1 11 chunks +12 lines, -18 lines 0 comments Download
M src/pkg/runtime/hashmap.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -88 lines 0 comments Download
M src/pkg/runtime/stubs.go View 1 2 3 4 5 6 7 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/runtime/type.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 8 months ago (2014-08-29 17:49:32 UTC) #1
crawshaw
https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go File src/pkg/runtime/alg.go (right): https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go#newcode51 src/pkg/runtime/alg.go:51: {memhash, memequal}, // alg_MEM You can specify an index ...
10 years, 8 months ago (2014-08-29 17:56:09 UTC) #2
dvyukov
https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go File src/pkg/runtime/alg.go (right): https://codereview.appspot.com/139930044/diff/100001/src/pkg/runtime/alg.go#newcode51 src/pkg/runtime/alg.go:51: {memhash, memequal}, // alg_MEM On 2014/08/29 17:56:09, crawshaw wrote: ...
10 years, 8 months ago (2014-08-29 18:02:27 UTC) #3
crawshaw
LGTM but check with Russ about that print you removed from chan.goc.
10 years, 8 months ago (2014-08-29 19:28:45 UTC) #4
dvyukov
On Fri, Aug 29, 2014 at 11:28 PM, <crawshaw@golang.org> wrote: > LGTM > > but ...
10 years, 8 months ago (2014-08-29 19:39:12 UTC) #5
rsc
On Fri, Aug 29, 2014 at 3:28 PM, <crawshaw@golang.org> wrote: > LGTM > but check ...
10 years, 8 months ago (2014-08-29 19:48:38 UTC) #6
khr
LGTM. https://codereview.appspot.com/139930044/diff/120001/src/pkg/runtime/alg.go File src/pkg/runtime/alg.go (right): https://codereview.appspot.com/139930044/diff/120001/src/pkg/runtime/alg.go#newcode139 src/pkg/runtime/alg.go:139: return f64hash(unsafe.Pointer(&x[1]), 4, f64hash(unsafe.Pointer(&x[0]), 4, h)) s/4/8/ while ...
10 years, 8 months ago (2014-08-29 21:09:09 UTC) #7
dvyukov
https://codereview.appspot.com/139930044/diff/120001/src/pkg/runtime/alg.go File src/pkg/runtime/alg.go (right): https://codereview.appspot.com/139930044/diff/120001/src/pkg/runtime/alg.go#newcode139 src/pkg/runtime/alg.go:139: return f64hash(unsafe.Pointer(&x[1]), 4, f64hash(unsafe.Pointer(&x[0]), 4, h)) On 2014/08/29 21:09:09, ...
10 years, 8 months ago (2014-08-30 04:31:02 UTC) #8
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=7b4959d78977 *** runtime: convert type algorithms to Go Actually it mostly deletes ...
10 years, 8 months ago (2014-08-30 04:41:03 UTC) #9
gobot
10 years, 8 months ago (2014-08-30 04:42:03 UTC) #10
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64-perf builder.
See http://build.golang.org/log/a04b8d846d357f0b681e8fb0e414c5563312137d
Sign in to reply to this message.

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