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

Issue 98510044: code review 98510044: runtime: convert interface routines from C to Go. (Closed)

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

Description

runtime: convert interface routines from C to Go.

Patch Set 1 #

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

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

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

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

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

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

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

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

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

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

Total comments: 15

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

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

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

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

Total comments: 3

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

Total comments: 1

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -390 lines) Patch
M src/cmd/api/goapi.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/reflect/asm_386.s View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/reflect/asm_amd64.s View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/reflect/asm_amd64p32.s View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/reflect/asm_arm.s View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/alg.goc View 2 chunks +3 lines, -0 lines 0 comments Download
A src/pkg/runtime/iface.go View 1 chunk +469 lines, -0 lines 0 comments Download
M src/pkg/runtime/iface.goc View 8 chunks +16 lines, -388 lines 0 comments Download
M src/pkg/runtime/stubs.go View 4 chunks +8 lines, -1 line 0 comments Download
M src/pkg/runtime/stubs.goc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 19
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
10 years, 8 months ago (2014-08-03 21:25:56 UTC) #1
dave_cheney.net
On 2014/08/03 21:25:56, khr wrote: > Hello mailto:golang-codereviews@googlegroups.com, > > I'd like you to review ...
10 years, 8 months ago (2014-08-04 06:25:28 UTC) #2
bradfitz
https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go File src/pkg/runtime/iface.go (right): https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go#newcode16 src/pkg/runtime/iface.go:16: var ifaceLock lock what does this guard? (I know ...
10 years, 8 months ago (2014-08-04 17:45:40 UTC) #3
dave_cheney.net
https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go File src/pkg/runtime/iface.go (right): https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go#newcode161 src/pkg/runtime/iface.go:161: memmove(x, elem, size) newobject zeroes the memory returned by ...
10 years, 8 months ago (2014-08-05 02:29:44 UTC) #4
dvyukov
https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go File src/pkg/runtime/iface.go (right): https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go#newcode15 src/pkg/runtime/iface.go:15: var hash [hashSize]*itab var ( ... ) https://codereview.appspot.com/98510044/diff/200001/src/pkg/runtime/iface.go#newcode21 src/pkg/runtime/iface.go:21: ...
10 years, 8 months ago (2014-08-05 08:52:22 UTC) #5
khr1
On Mon, Aug 4, 2014 at 10:45 AM, <bradfitz@golang.org> wrote: > > https://codereview.appspot.com/98510044/diff/200001/src/ > pkg/runtime/iface.go ...
10 years, 8 months ago (2014-08-06 21:57:32 UTC) #6
khr1
On Mon, Aug 4, 2014 at 7:29 PM, <dave@cheney.net> wrote: > > https://codereview.appspot.com/98510044/diff/200001/src/ > pkg/runtime/iface.go ...
10 years, 8 months ago (2014-08-06 22:03:47 UTC) #7
khr1
On Tue, Aug 5, 2014 at 1:52 AM, <dvyukov@google.com> wrote: > > https://codereview.appspot.com/98510044/diff/200001/src/ > pkg/runtime/iface.go ...
10 years, 8 months ago (2014-08-06 22:10:07 UTC) #8
bradfitz
https://codereview.appspot.com/98510044/diff/280001/src/pkg/runtime/iface.go File src/pkg/runtime/iface.go (right): https://codereview.appspot.com/98510044/diff/280001/src/pkg/runtime/iface.go#newcode17 src/pkg/runtime/iface.go:17: ifaceLock lock // lock for accessing hash we generally ...
10 years, 8 months ago (2014-08-06 22:21:34 UTC) #9
bradfitz
On Wed, Aug 6, 2014 at 2:57 PM, Keith Randall <khr@google.com> wrote: > > > ...
10 years, 8 months ago (2014-08-06 22:21:49 UTC) #10
khr1
I think I'll leave it as is. It gets called during most type conversions and ...
10 years, 8 months ago (2014-08-06 22:35:46 UTC) #11
dave_cheney.net
Thanks for your reply. Would you be able to add a short comment just above ...
10 years, 8 months ago (2014-08-06 22:55:37 UTC) #12
khr1
Dmitry, could you take a final look? On Wed, Aug 6, 2014 at 3:55 PM, ...
10 years, 8 months ago (2014-08-07 19:45:38 UTC) #13
dvyukov
https://codereview.appspot.com/98510044/diff/280001/src/pkg/runtime/stubs.go File src/pkg/runtime/stubs.go (right): https://codereview.appspot.com/98510044/diff/280001/src/pkg/runtime/stubs.go#newcode86 src/pkg/runtime/stubs.go:86: func goatomicloadp(p unsafe.Pointer) unsafe.Pointer // return *p sync, I've ...
10 years, 8 months ago (2014-08-07 20:26:34 UTC) #14
dvyukov
it LGTM if I am missing something regarding persistentalloc, and it actually works
10 years, 8 months ago (2014-08-07 20:27:27 UTC) #15
khr1
Persistentalloc needs to move to the M stack. I'll do that in a separate CL. ...
10 years, 8 months ago (2014-08-07 20:45:39 UTC) #16
dvyukov
OK, then LGTM with the gothrow fix and sync But I am concerned that compiler ...
10 years, 8 months ago (2014-08-07 20:47:38 UTC) #17
khr1
NOSPLIT is not enforced recursively. NOSPLIT functions can call non-NOSPLIT functions. The compiler only checks ...
10 years, 8 months ago (2014-08-07 20:52:17 UTC) #18
khr
10 years, 8 months ago (2014-08-07 21:00:51 UTC) #19
*** Submitted as https://code.google.com/p/go/source/detail?r=94a57b1af785 ***

runtime: convert interface routines from C to Go.

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

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